Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix effective inverse mass computation for 3D friction #609

Merged
merged 1 commit into from
Dec 30, 2024

Conversation

Jondolf
Copy link
Owner

@Jondolf Jondolf commented Dec 30, 2024

Objective

3D friction currently has a bug that causes objects with a small angular inertia to twist and jitter strangely on the ground:

2024-12-30.16-27-27.mp4

(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:

2024-12-30.16-26-37.mp4

@Jondolf Jondolf added C-Bug Something isn't working A-Dynamics Relates to rigid body dynamics: motion, mass, constraint solving, joints, CCD, and so on labels Dec 30, 2024
@Jondolf Jondolf enabled auto-merge (squash) December 30, 2024 14:48
@Jondolf Jondolf disabled auto-merge December 30, 2024 14:49
@Jondolf Jondolf enabled auto-merge (squash) December 30, 2024 14:50
@Jondolf Jondolf merged commit aa56ed1 into main Dec 30, 2024
5 checks passed
@Jondolf Jondolf deleted the fix-friction-effective-mass branch December 30, 2024 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Dynamics Relates to rigid body dynamics: motion, mass, constraint solving, joints, CCD, and so on C-Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant