PhysicImpostor set mass break joints

Hello,

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 :

https://playground.babylonjs.com/#UFVU18#322

Or is there something to do to change the mass ?

Thanks

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.