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"

Making a hovering ship that can follow hill slopes.

I have created a ship using blueprints that will hover above the ground. However I can't figure out how to get it to fly over hills and slopes. It is set up right now to move up more when it gets closer than its desired distance to the floor, but when it is going very fast it doesn't do it fast enough and hits the floor. Is there some way to detect the slopes or another method to keep it from colliding with the floor? Thanks

Product Version: UE 4.10
more ▼

asked Jan 06 '16 at 08:39 PM in Blueprint Scripting

avatar image

162 24 29 34

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

1 answer: sort voted first

Hello VoidGoat,

I have an example for you that will get you started in the right direction. Please remember this is an example meant to point you in the correct direction and it's not meant to be an exact solution. I hope that this information helps.


In this example I am setting the rotation of an object so that it's relative up direction in perpendicular to the ground. The make Vector node may need to be swapped out for a "Get Actor Up Vector". From there you will want to multiply it's result by a negative number equal to the distance you would like the line trace to travel (this will ensure that the line trace always fires out the bottom of the object).

alt text

Make it a great day

more ▼

answered Jan 06 '16 at 08:54 PM

avatar image

Rudy Q ♦♦ STAFF
47.3k 545 132 525

avatar image VoidGoat Jan 06 '16 at 09:12 PM

I have tried to do something similar to this in the past but it didn't work very well because it would only work at slower speeds. At faster speeds it would rotate but it wouldn't have time to move the ship in the rotated direction. I will mess with to see if I can get it to work.

avatar image Polivantage Jan 24 '16 at 08:06 PM
  • not relevant, but I'm just wondering whether a real hover ship wouldn't crash and burn if it ran at a slope at high speed, and if not, what would be the desired behaviour?

Perhaps you would like it to just move up faster, in which case you just need to adjust the interpolation speed. If the desired behaviour is different from just having more agility in changing its height, perhaps you could describe how you would like it to move? Also a screenshot of your current setup would make things clearer :)

(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