Opposing gravity

I am having trouble getting the value of gravity applied as a force to my Pawn so that I can oppose it to temporarily create gravity-free moments.

I see there is an axis, this gives me a vector of 0,0,0
On a different actor (not pawn) I have this working, with the “get gravity” node but this node isn’t available (and doesn’t work when I C&P) into my Pawn

Hi rodstone,

In the blueprint you are working in, right click on the event graph then uncheck context sensitivity mode. Once you type in gravity you should be able to get gravity Z, Enable/disable gravity, etc.

Hi rodstone,

In your Project Settings under Physics, what do you have your “default gravity Z” set to? The base is -980, try applying opposite force to see if that does what you are looking for.

I’ve used those nodes, they return 0,0,0 in this particular pawn

i have set mine to -200 but add force of 200 is no where near enough

just to test and see if it is working, set it to a ridiculous number. For instance, use 980 as a direct opposing value to the -980.

well I titrated it another time to somewhere between 20000.0 and 10000 with a gravity of -200

Did this have the effect of pushing your character in the opposite direction of gravity? In the end that is what you will be looking for, to even out the effect of gravity by using equal yet opposite force.

well I never found the exact value that exactly counteracted gravity, the idea is that my thing would float. you’re correct, its just that the value i use in the vector for “add force” isnt just the opposite of what gravity in the physics settings is

in the end I just disable gravity on the pawn for the time I want to. it has the same effect basically