Skip to content

Commit f13158d

Browse files
committed
Fix effective inverse mass computation for 3D friction
1 parent 2ebab52 commit f13158d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dynamics/solver/contact/tangent_part.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ impl ContactTangentPart {
139139
// This is needed for solving the two tangent directions simultaneously.
140140
// TODO. Derive and explain the math for this, or consider an alternative approach,
141141
// like using the Jacobians to compute the actual effective mass matrix.
142-
part.effective_inverse_mass[2] = 2.0 * (i1_rt11.dot(i1_rt21) + i2_rt12.dot(i2_rt22));
142+
part.effective_inverse_mass[2] = 2.0 * (rt11.dot(i1_rt21) + rt12.dot(i2_rt22));
143143
}
144144

145145
part

0 commit comments

Comments
 (0)