aboutsummaryrefslogtreecommitdiff
path: root/benchmarks3d/joint_ball3.rs
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks3d/joint_ball3.rs')
-rw-r--r--benchmarks3d/joint_ball3.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmarks3d/joint_ball3.rs b/benchmarks3d/joint_ball3.rs
index 5e3eb10..a1661f8 100644
--- a/benchmarks3d/joint_ball3.rs
+++ b/benchmarks3d/joint_ball3.rs
@@ -37,7 +37,7 @@ pub fn init_world(testbed: &mut Testbed) {
if i > 0 {
let parent_handle = *body_handles.last().unwrap();
let joint = BallJoint::new(Point::origin(), point![0.0, 0.0, -shift]);
- joints.insert(&mut bodies, parent_handle, child_handle, joint);
+ joints.insert(parent_handle, child_handle, joint);
}
// Horizontal joint.
@@ -45,7 +45,7 @@ pub fn init_world(testbed: &mut Testbed) {
let parent_index = body_handles.len() - num;
let parent_handle = body_handles[parent_index];
let joint = BallJoint::new(Point::origin(), point![-shift, 0.0, 0.0]);
- joints.insert(&mut bodies, parent_handle, child_handle, joint);
+ joints.insert(parent_handle, child_handle, joint);
}
body_handles.push(child_handle);