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` --- examples3d/compound3.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples3d/compound3.rs') diff --git a/examples3d/compound3.rs b/examples3d/compound3.rs index 5ecccb9..8c2deb0 100644 --- a/examples3d/compound3.rs +++ b/examples3d/compound3.rs @@ -16,7 +16,7 @@ pub fn init_world(testbed: &mut Testbed) { let ground_size = 50.0; let ground_height = 0.1; - let rigid_body = RigidBodyBuilder::new_static().translation(vector![0.0, -ground_height, 0.0]); + let rigid_body = RigidBodyBuilder::fixed().translation(vector![0.0, -ground_height, 0.0]); let handle = bodies.insert(rigid_body); let collider = ColliderBuilder::cuboid(ground_size, ground_height, ground_size); colliders.insert_with_parent(collider, handle, &mut bodies); @@ -43,7 +43,7 @@ pub fn init_world(testbed: &mut Testbed) { let z = k as f32 * shift * 2.0 - centerz + offset; // Build the rigid body. - let rigid_body = RigidBodyBuilder::new_dynamic().translation(vector![x, y, z]); + let rigid_body = RigidBodyBuilder::dynamic().translation(vector![x, y, z]); let handle = bodies.insert(rigid_body); // First option: attach several colliders to a single rigid-body. -- cgit