Zielak
(Zielak)
May 9, 2014, 3:33pm
1
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 Is there different way to do it?
You can’t set mass, it’s calculated automatically from the density set in the physics material.
Zielak
(Zielak)
May 9, 2014, 10:53pm
3
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
Zielak
(Zielak)
December 30, 2014, 1:08pm
5
Not the answer to my question. Minimum is 0.001 kg, and I wanted to set it below zero
Arshia001
(Arshia001)
December 30, 2014, 1:33pm
6
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