Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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!

Product Version: UE 4.15
more ▼

asked Mar 29 '17 at 06:09 PM in Using UE4

avatar image

29 4 11 14

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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.

more ▼

answered Mar 29 '17 at 06:17 PM

avatar image

1.3k 46 29 59

avatar image Connormcfarland Mar 29 '17 at 06:25 PM

Thanks for the reply! but would you by chance have a video or something on this? i tried doing what you said (i am still relatively new to ue4) and all i got was a line trace set up and only a red line appears lol

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question