Updating the mass applies a force to the physics body

I have no idea why it’s happening. I traced down the code and the same method updateMassProperties is called.