diff options
Diffstat (limited to 'examples3d/convex_polyhedron3.rs')
| -rw-r--r-- | examples3d/convex_polyhedron3.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples3d/convex_polyhedron3.rs b/examples3d/convex_polyhedron3.rs index b4c391e..980720a 100644 --- a/examples3d/convex_polyhedron3.rs +++ b/examples3d/convex_polyhedron3.rs @@ -18,7 +18,7 @@ pub fn init_world(testbed: &mut Testbed) { let ground_size = 40.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); @@ -52,7 +52,7 @@ pub fn init_world(testbed: &mut Testbed) { } // 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 = ColliderBuilder::round_convex_hull(&points, border_rad).unwrap(); colliders.insert_with_parent(collider, handle, &mut bodies); |
