aboutsummaryrefslogtreecommitdiff
path: root/benchmarks3d/joint_prismatic3.rs
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks3d/joint_prismatic3.rs')
-rw-r--r--benchmarks3d/joint_prismatic3.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmarks3d/joint_prismatic3.rs b/benchmarks3d/joint_prismatic3.rs
index faa5f93..a97dc56 100644
--- a/benchmarks3d/joint_prismatic3.rs
+++ b/benchmarks3d/joint_prismatic3.rs
@@ -23,7 +23,7 @@ pub fn init_world(testbed: &mut Testbed) {
for j in 0..50 {
let x = j as f32 * shift * 4.0;
- let ground = RigidBodyBuilder::new_static().translation(vector![x, y, z]);
+ let ground = RigidBodyBuilder::fixed().translation(vector![x, y, z]);
let mut curr_parent = bodies.insert(ground);
let collider = ColliderBuilder::cuboid(rad, rad, rad);
colliders.insert_with_parent(collider, curr_parent, &mut bodies);
@@ -31,7 +31,7 @@ pub fn init_world(testbed: &mut Testbed) {
for i in 0..num {
let z = z + (i + 1) as f32 * shift;
let density = 1.0;
- let rigid_body = RigidBodyBuilder::new_dynamic().translation(vector![x, y, z]);
+ let rigid_body = RigidBodyBuilder::dynamic().translation(vector![x, y, z]);
let curr_child = bodies.insert(rigid_body);
let collider = ColliderBuilder::cuboid(rad, rad, rad).density(density);
colliders.insert_with_parent(collider, curr_child, &mut bodies);