From 77a6cd3f26525ce6b02b63b34cb68d3a8a444ee2 Mon Sep 17 00:00:00 2001 From: Crozet Sébastien Date: Sun, 11 Jul 2021 18:41:51 +0200 Subject: Release v0.10.0 --- examples2d/joints2.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples2d') 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); -- cgit