Skip to content

Conversation

@Jondolf
Copy link
Member

@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.

2 participants