Fix issue 179 in FixedJoint

This commit is contained in:
Daniel Chappuis 2020-11-25 22:20:40 +01:00
parent 264705056e
commit cc63f7c0a1

View File

@ -454,7 +454,7 @@ void SolveFixedJointSystem::solvePositionConstraint() {
// Compute the pseudo velocity of body 1 // Compute the pseudo velocity of body 1
const Vector3 v1 = inverseMassBody1 * linearImpulseBody1; const Vector3 v1 = inverseMassBody1 * linearImpulseBody1;
Vector3 w1 = mFixedJointComponents.mI2[i] * angularImpulseBody1; Vector3 w1 = mFixedJointComponents.mI1[i] * angularImpulseBody1;
// Update the body position/orientation of body 1 // Update the body position/orientation of body 1
x1 += v1; x1 += v1;