aboutsummaryrefslogtreecommitdiff
path: root/examples2d
diff options
context:
space:
mode:
authorCrozet Sébastien <developer@crozet.re>2021-07-11 18:41:51 +0200
committerSébastien Crozet <sebastien@crozet.re>2021-07-11 19:21:50 +0200
commit77a6cd3f26525ce6b02b63b34cb68d3a8a444ee2 (patch)
treed7ad31295739f685a486d6653175630718a34760 /examples2d
parent9233a855f0fd13e61c475b32117838af95fb4c93 (diff)
downloadrapier-0.10.0.tar.gz
rapier-0.10.0.tar.bz2
rapier-0.10.0.zip
Release v0.10.0v0.10.0
Diffstat (limited to 'examples2d')
-rw-r--r--examples2d/joints2.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples2d/joints2.rs b/examples2d/joints2.rs
index 9c94968..9333184 100644
--- a/examples2d/joints2.rs
+++ b/examples2d/joints2.rs
@@ -45,7 +45,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, shift]);
- joints.insert(&mut bodies, parent_handle, child_handle, joint);
+ joints.insert(parent_handle, child_handle, joint);
}
// Horizontal joint.
@@ -53,7 +53,7 @@ pub fn init_world(testbed: &mut Testbed) {
let parent_index = body_handles.len() - numi;
let parent_handle = body_handles[parent_index];
let joint = BallJoint::new(Point::origin(), point![-shift, 0.0]);
- joints.insert(&mut bodies, parent_handle, child_handle, joint);
+ joints.insert(parent_handle, child_handle, joint);
}
body_handles.push(child_handle);