Does any changing Mass at runtime work?

I tried changing Set Mass Scale with mass in kg override on and off and I also tried applying a physical material override with huge and very small density values but nothing has any effect. Furthermore changing Mass Scale in the editor has no effect either. Changing mass in kg in the editor is the only thing that seems to work.

I’m trying to change the mass of a physics projectile at runtime.

Hi Davision,

Prior to 4.6 we did allow an objects mass to be changed dynamically at runtime but that was scrapped due to some major issues that it could cause. You can find out a little more about that in my other post [here.][1]

The best way to currently approach this in the engine would be to create a Physical Material for each mass that you would like your object to have and then swap between those materials. Here is an example:

66449-changemass01.png

Let me know if that works for you.

Cheers,

TJ