sofa-framework / sofa

Real-time multi-physics simulation with an emphasis on medical simulation.
https://www.sofa-framework.org
GNU Lesser General Public License v2.1
934 stars 312 forks source link

[Mass] Add unit test to test rotation of inertia matrix for rigid objects #4935

Open bakpaul opened 3 months ago

bakpaul commented 3 months ago

This PR add a unit test that is currently failing, showing that the inertia is wrongly taken into account for rigid with different inertia along each direction.

After rotation of a rigid, the inertia matrix is not rotated accordingly. See issue https://github.com/sofa-framework/sofa/issues/4936.

We need to fix this !


By submitting this pull request, I acknowledge that
I have read, understand, and agree SOFA Developer Certificate of Origin (DCO).


Reviewers will merge this pull-request only if