How to make a character Hover/fly on key press
i'm looking to find a way to have my third person character hover or fly on a key press. i want him to hover maybe a little higher than he can jump, and be able to completely control him in air, just as a flying effect to the magic game i am making. much appreciated!
asked Mar 29 '17 at 06:09 PM in Using UE4
You could use a line trace to find out how far you are from the ground. If you are closer than the hight you want to hover at, you can apply a force counteracting gravity and lifting your character up. Or if you do stuff without physics, you can simply set your character at a location that is as far away from the ground as you want to. You will have to do this every frame.
answered Mar 29 '17 at 06:17 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here