diff options
Diffstat (limited to 'examples3d/heightfield3.rs')
| -rw-r--r-- | examples3d/heightfield3.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples3d/heightfield3.rs b/examples3d/heightfield3.rs index e144442..360ba3a 100644 --- a/examples3d/heightfield3.rs +++ b/examples3d/heightfield3.rs @@ -31,7 +31,7 @@ pub fn init_world(testbed: &mut Testbed) { } }); - let rigid_body = RigidBodyBuilder::new_static(); + let rigid_body = RigidBodyBuilder::fixed(); let handle = bodies.insert(rigid_body); let collider = ColliderBuilder::heightfield(heights, ground_size); colliders.insert_with_parent(collider, handle, &mut bodies); @@ -55,7 +55,7 @@ pub fn init_world(testbed: &mut Testbed) { let z = k as f32 * shift - centerz; // 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); let collider = match j % 6 { |
