reactphysics3d icon indicating copy to clipboard operation
reactphysics3d copied to clipboard

Change of angular velocity integration method.

Open GrzegorzSzczodrzec opened this issue 6 months ago • 0 comments

Angular velocity should be computed in the rotated coordinate system to get the proper value of the angular momentum derivative: https://en.wikipedia.org/wiki/Euler%27s_equation_of_motion

The provided code change switches angular velocity integration to the local (rotating) coordinate system.

A unit test is added. In the absence of external torque (caused by gravity or contact), the angular momentum vector should remain constant. The included unit test verifies this property.

GrzegorzSzczodrzec avatar May 13 '25 11:05 GrzegorzSzczodrzec