How to calculate forward vector according to floor angle?

bulgogi_king
Fri, 01 Nov 2019 18:05:18 +0000
World Creation

Hello, I’ve made a hovercraft type vehicle. I use “Add Force” according to Actor Forward Vector to move it. However, in cases where the vehicle is tilted (like upon landing or going over a small bump), my method of using Actor Forward Vector launches it upwards diagonally. I think using the angle of the floor beneath it for “Add Force” will solve this problem, but I’m not sure about the math to get this vector.

4 posts - 1 participant