aboutsummaryrefslogtreecommitdiff
path: root/benchmarks3d
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 /benchmarks3d
parent9233a855f0fd13e61c475b32117838af95fb4c93 (diff)
downloadrapier-77a6cd3f26525ce6b02b63b34cb68d3a8a444ee2.tar.gz
rapier-77a6cd3f26525ce6b02b63b34cb68d3a8a444ee2.tar.bz2
rapier-77a6cd3f26525ce6b02b63b34cb68d3a8a444ee2.zip
Release v0.10.0v0.10.0
Diffstat (limited to 'benchmarks3d')
-rw-r--r--benchmarks3d/joint_ball3.rs4
-rw-r--r--benchmarks3d/joint_fixed3.rs4
-rw-r--r--benchmarks3d/joint_prismatic3.rs2
-rw-r--r--benchmarks3d/joint_revolute3.rs8
4 files changed, 9 insertions, 9 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);
diff --git a/benchmarks3d/joint_fixed3.rs b/benchmarks3d/joint_fixed3.rs
index 5647dde..3d1e317 100644
--- a/benchmarks3d/joint_fixed3.rs
+++ b/benchmarks3d/joint_fixed3.rs
@@ -53,7 +53,7 @@ pub fn init_world(testbed: &mut Testbed) {
Isometry::identity(),
Isometry::translation(0.0, 0.0, -shift),
);
- joints.insert(&mut bodies, parent_handle, child_handle, joint);
+ joints.insert(parent_handle, child_handle, joint);
}
// Horizontal joint.
@@ -64,7 +64,7 @@ pub fn init_world(testbed: &mut Testbed) {
Isometry::identity(),
Isometry::translation(-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);
diff --git a/benchmarks3d/joint_prismatic3.rs b/benchmarks3d/joint_prismatic3.rs
index b310b14..b011662 100644
--- a/benchmarks3d/joint_prismatic3.rs
+++ b/benchmarks3d/joint_prismatic3.rs
@@ -59,7 +59,7 @@ pub fn init_world(testbed: &mut Testbed) {
prism.limits_enabled = true;
prism.limits[0] = -2.0;
prism.limits[1] = 2.0;
- joints.insert(&mut bodies, curr_parent, curr_child, prism);
+ joints.insert(curr_parent, curr_child, prism);
curr_parent = curr_child;
}
diff --git a/benchmarks3d/joint_revolute3.rs b/benchmarks3d/joint_revolute3.rs
index 7c0f6cb..d6dc06c 100644
--- a/benchmarks3d/joint_revolute3.rs
+++ b/benchmarks3d/joint_revolute3.rs
@@ -61,10 +61,10 @@ pub fn init_world(testbed: &mut Testbed) {
RevoluteJoint::new(o, x, point![shift, 0.0, 0.0], x),
];
- joints.insert(&mut bodies, curr_parent, handles[0], revs[0]);
- joints.insert(&mut bodies, handles[0], handles[1], revs[1]);
- joints.insert(&mut bodies, handles[1], handles[2], revs[2]);
- joints.insert(&mut bodies, handles[2], handles[3], revs[3]);
+ joints.insert(curr_parent, handles[0], revs[0]);
+ joints.insert(handles[0], handles[1], revs[1]);
+ joints.insert(handles[1], handles[2], revs[2]);
+ joints.insert(handles[2], handles[3], revs[3]);
curr_parent = handles[3];
}