aboutsummaryrefslogtreecommitdiff
path: root/benchmarks3d/convex_polyhedron3.rs
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks3d/convex_polyhedron3.rs')
-rw-r--r--benchmarks3d/convex_polyhedron3.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmarks3d/convex_polyhedron3.rs b/benchmarks3d/convex_polyhedron3.rs
index 5d9f363..f95c350 100644
--- a/benchmarks3d/convex_polyhedron3.rs
+++ b/benchmarks3d/convex_polyhedron3.rs
@@ -18,7 +18,7 @@ pub fn init_world(testbed: &mut Testbed) {
let ground_size = 200.1;
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);
@@ -55,7 +55,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);