bevy_xpbd icon indicating copy to clipboard operation
bevy_xpbd copied to clipboard

Add test for rotation behavior with offset center of mass

Open Jondolf opened this issue 1 year ago • 0 comments
trafficstars

Rigid bodies should rotate around their center of mass, not around their Position. Rotating around the Position is unrealistic in cases where the center of mass is offset, and it can cause severe stability issues, as seen in for example #244 and #246.

#246 fixed the issue, but it would be good to have a test to make sure there are no behavior regressions in the future. I encountered this now with the solver rework (#385), as I accidentally made rotation ignore the center of mass again.

Jondolf avatar Jul 01 '24 15:07 Jondolf