Adding gravity to my pawn

Hello, I’m learning about blueprints and with alot of help from this forum I was able to make a pawn that can fly around. Here is my layout:

This is what I made so far

This is my event graph:



So I want to know how to make it be affected by gravity for example when I stop pressing W and it starts decelerating I want it to fall by gravity too like it was turned off.

And the other question is that the camera looks kind of choppy for some reason and I don’t know why.

Thanks for the help to whoever responds :smiley:

You could enable physics sim + gravity on the root component.

Or Add Movement Input along negative Z, this would modulate gravity based on your velocity and can be done better, too, just an example:

when I stop pressing W and it starts decelerating

Or even hook it up to input axis:


edit: typo in the tooltip 200 = 500

2 Likes

Hello, thanks for the answer, I tried your second suggestion and it works but not how I like, I want it to fall unless I’m pressing W, this is how it looks:


As you can see it depends on how much acceleration it had at the moment of releasing W.

I want it to fall as it had gravity, and if I simulate physics it just falls endlessly too :frowning: sorry I’m pretty new to all this.