Jondolf / avian

ECS-driven 2D and 3D physics engine for the Bevy game engine.
https://crates.io/crates/avian3d
Apache License 2.0
1.55k stars 120 forks source link

Fix angular locked axes in gyroscopic torque computation #485

Closed Jondolf closed 3 months ago

Jondolf commented 3 months ago

Objective

Fixes #474.

The angular locked axes are applied to the inertia instead of the inverse inertia in gyroscopic torque computations introduced in #420, causing incorrect behavior.

Solution

Apply the locked axes correctly.