From a9e3441ecd64d50b478ab5370fabe187ec9a5c39 Mon Sep 17 00:00:00 2001 From: Sébastien Crozet Date: Sat, 19 Mar 2022 16:23:09 +0100 Subject: Rename rigid-body `static` to `fixed` --- examples2d/debug_box_ball2.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples2d/debug_box_ball2.rs') diff --git a/examples2d/debug_box_ball2.rs b/examples2d/debug_box_ball2.rs index e071c61..9725ccf 100644 --- a/examples2d/debug_box_ball2.rs +++ b/examples2d/debug_box_ball2.rs @@ -14,7 +14,7 @@ pub fn init_world(testbed: &mut Testbed) { * Ground */ let rad = 1.0; - let rigid_body = RigidBodyBuilder::new_static() + let rigid_body = RigidBodyBuilder::fixed() .translation(vector![0.0, -rad]) .rotation(std::f32::consts::PI / 4.0); let handle = bodies.insert(rigid_body); @@ -22,7 +22,7 @@ pub fn init_world(testbed: &mut Testbed) { colliders.insert_with_parent(collider, handle, &mut bodies); // Build the dynamic box rigid body. - let rigid_body = RigidBodyBuilder::new_dynamic() + let rigid_body = RigidBodyBuilder::dynamic() .translation(vector![0.0, 3.0 * rad]) .can_sleep(false); let handle = bodies.insert(rigid_body); -- cgit