Commit aa56ed1
authored
Fix effective inverse mass computation for 3D friction (#609)
# Objective
3D friction currently has a bug that causes objects with a small angular inertia to twist and jitter strangely on the ground:
https://github.com/user-attachments/assets/8cc4aa25-808a-4899-b8a4-5079a48c4be1
(reproduction by occuros <3)
## Solution
The problem was caused by an angular inertia term being included *twice* for a part of the effective inverse mass computation for 3D friction. With that fixed, resting contacts are much more stable even with small mass properties:
https://github.com/user-attachments/assets/c2d829b3-bcf5-4c8e-997d-57614e741e1d1 parent 2ebab52 commit aa56ed1
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| |||
0 commit comments