How to Negate/Set Mass?

I have access to GetMass node but there’s no SetMass node. Is that even possible with blueprints? Or do I have to make custom function with C++?

I wanted to make negative mass so one object would be negatively affected by gravity. Imagine boulder flying upwards :slight_smile: Is there different way to do it?

You can’t set mass, it’s calculated automatically from the density set in the physics material.

Thanks for the reply. I made a work-around for my case where each object has:

  • BoxComponent with physics “on” and gravity use “off”
  • it’s own “fake gravity” vector variable
  • Tick event that applies AddForce to BoxComponent

This way I can make one box fly upwards, the other “fall” to the right etc.

In the details Panel under Physics you can set the Override Mass to true and then change the Mass :slight_smile:

Not the answer to my question. Minimum is 0.001 kg, and I wanted to set it below zero :slight_smile:

Very, VERY old thread, and you can’t have negative mass anyway.

Hello Zielak,

I have a suggestion that may working depending on what it is exactly you wanted to do. You could turn off the gravity for that particular actor with the following check box. You could then apply force to the object in the upward direction. I hope this helps.

Make it a great day