Release v0.10.0

This commit is contained in:
Crozet Sébastien
2021-07-11 18:41:51 +02:00
committed by Sébastien Crozet
parent 9233a855f0
commit 77a6cd3f26
19 changed files with 82 additions and 75 deletions

View File

@@ -42,7 +42,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.
@@ -50,7 +50,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);

View File

@@ -50,7 +50,7 @@ pub fn init_world(testbed: &mut Testbed) {
Isometry::identity(),
Isometry::translation(0.0, shift),
);
joints.insert(&mut bodies, parent_handle, child_handle, joint);
joints.insert(parent_handle, child_handle, joint);
}
// Horizontal joint.
@@ -61,7 +61,7 @@ pub fn init_world(testbed: &mut Testbed) {
Isometry::identity(),
Isometry::translation(-shift, 0.0),
);
joints.insert(&mut bodies, parent_handle, child_handle, joint);
joints.insert(parent_handle, child_handle, joint);
}
body_handles.push(child_handle);

View File

@@ -51,7 +51,7 @@ pub fn init_world(testbed: &mut Testbed) {
prism.limits_enabled = true;
prism.limits[0] = -1.5;
prism.limits[1] = 1.5;
joints.insert(&mut bodies, curr_parent, curr_child, prism);
joints.insert(curr_parent, curr_child, prism);
curr_parent = curr_child;
}