Fix joint limits not being flipped in one body constrains. (#549)

This commit is contained in:
Fun Maker
2024-04-21 20:48:35 +02:00
committed by Sébastien Crozet
parent a2fdeab7e1
commit 4332818e02
3 changed files with 28 additions and 16 deletions

View File

@@ -198,7 +198,7 @@ impl JointOneBodyConstraintBuilder {
if flipped {
std::mem::swap(&mut handle1, &mut handle2);
std::mem::swap(&mut joint_data.local_frame1, &mut joint_data.local_frame2);
joint_data.flip();
};
let rb1 = &bodies[handle1];