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
asked Jan 06 '16 at 08:39 PM in Blueprint Scripting
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).
Make it a great day
Follow this question
Once you sign in you will be able to subscribe for any updates here