erincatto / box2d

Box2D is a 2D physics engine for games
https://box2d.org
MIT License
8.05k stars 1.51k forks source link

ResetMassData being called unconditionally at the end of DestroyFixture #692

Closed simonvanbernem closed 2 years ago

simonvanbernem commented 3 years ago

Make sure these boxes are checked before submitting your issue - thank you!

At the end of b2Body::DestroyFixture, there is an unconditional call to ResetMassData. Updating the body mass is not necessary if the fixture has 0 density.