[Closed] Adjust gravity via custom WorldSettings class
Hi, I'm trying to change the gravity with worldsettings. I have a custom worldsettings class with a few lines inside (below). I can't manage to call globalGravityZ = 100; or worldGravityZ = 100;
I know it;s probably AWorldSettings:: or something different but I don't know exactly.
My .cpp is basically lines of tetsing (I'm new to unrealscript (if thats what it's still called ahah) I came from Unity and pretty adapted to their way of things..
Anyways I found these IntelliSense fillers (in pic), can anyone help me utilize it? I basically want to be able to call a function from blueprint to tell the world settings gravity to be a certain value.
The int GRAVITY = is just a line i was testing to make sure it compiled.
Thanks for any help.
The question has been closed Oct 28 '18 at 11:39 PM by timsev7n for the following reason:
The question is answered, right answer was accepted
Nevermind, I will just explicitly set it through AddForce. It's working great plus I have the ability to use overlap events etc to set the gravity to a certain number in certain areas on the map on certain actors, certain direction etc... Much easier and versatile!
EDIT: Added a pic for reference. The grounded bool is just begin and end overlap events setting grounded to true/false.
Follow this question
Once you sign in you will be able to subscribe for any updates here