PhysicImpostor set mass break joints


I think there is an issue with the mass setter of the physicImposter, when we change the mass, the joints break and the velocity become crazy, no matter the physic engine used :

Or is there something to do to change the mass ?


That’s really interesting!

In the case of a mass change babylon simply passes it to the physics engine, and it seems like they all ignore the physics joints after that!..

What you can do it recreate the join a frame after:

Joint Example | Babylon.js Playground

I know it is not an optimal solution, but it will otherwise require debugging the physics engine itself and understand why they do that.