aboutsummaryrefslogtreecommitdiff
path: root/src/dynamics
diff options
context:
space:
mode:
authorSébastien Crozet <sebcrozet@dimforge.com>2024-05-05 16:15:00 +0200
committerSébastien Crozet <sebastien@crozet.re>2024-05-05 16:34:55 +0200
commit0d76a55d80dcee517012d1c3a5d6f7aae67dad2e (patch)
treee4d297bb0606287c17bb9603fcc1aa7f3a9320d4 /src/dynamics
parent4332818e021644aa716e7ef0cca774cab09f4860 (diff)
downloadrapier-0d76a55d80dcee517012d1c3a5d6f7aae67dad2e.tar.gz
rapier-0d76a55d80dcee517012d1c3a5d6f7aae67dad2e.tar.bz2
rapier-0d76a55d80dcee517012d1c3a5d6f7aae67dad2e.zip
chore: don’t return &mut Self with GenericJoint::flip
Diffstat (limited to 'src/dynamics')
-rw-r--r--src/dynamics/joint/generic_joint.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/dynamics/joint/generic_joint.rs b/src/dynamics/joint/generic_joint.rs
index 98f9311..8c8a4aa 100644
--- a/src/dynamics/joint/generic_joint.rs
+++ b/src/dynamics/joint/generic_joint.rs
@@ -498,7 +498,7 @@ impl GenericJoint {
}
/// Flips the orientation of the joint, including limits and motors.
- pub fn flip(&mut self) -> &mut Self {
+ pub fn flip(&mut self) {
std::mem::swap(&mut self.local_frame1, &mut self.local_frame2);
let coupled_bits = self.coupled_axes.bits();
@@ -513,8 +513,6 @@ impl GenericJoint {
self.motors[dim].target_vel = -self.motors[dim].target_vel;
self.motors[dim].target_pos = -self.motors[dim].target_pos;
}
-
- self
}
}