Skip to content

Fix gyroscopic torque#745

Merged
Jondolf merged 1 commit into
mainfrom
fix-gyroscopic-torque
May 26, 2025
Merged

Fix gyroscopic torque#745
Jondolf merged 1 commit into
mainfrom
fix-gyroscopic-torque

Conversation

@Jondolf

@Jondolf Jondolf commented May 26, 2025

Copy link
Copy Markdown
Member

Objective

#738 optimized gyroscopic torque. However, it also broke it! The current algorithm only uses the diagonal of the inertia tensor at the end, when it should be using the full tensor.

Solution

Use the full tensor.

Alternatively, if we represented the inertia tensor with the principal moments of inertia and an orientation, we would just apply that additional orientation. This is what Jolt does.

@Jondolf Jondolf added this to the 0.4 milestone May 26, 2025
@Jondolf Jondolf added C-Bug Something isn't working P-Regression Behaviour that was working before is now worse or broken.Add a test for this! A-Dynamics Relates to rigid body dynamics: motion, mass, constraint solving, joints, CCD, and so on labels May 26, 2025
@Jondolf Jondolf changed the title Fix gyroscopic torque orientation Fix gyroscopic torque May 26, 2025
@Jondolf Jondolf merged commit 4544e3a into main May 26, 2025
6 checks passed
@Jondolf Jondolf deleted the fix-gyroscopic-torque branch May 26, 2025 17:58
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 P-Regression Behaviour that was working before is now worse or broken.Add a test for this!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant