I want to make a character move around in hilly terrain. How should I handle movement on an uneven terrain like this?
One of the problems I’d like to avoid it, when going downhill, if all I do is apply a force forward, I will fly in the air for a bit then fall due to gravity, fly again then fall again, and so on.
One way to fix this would be to apply the force tangential to the terrain. However, for this I need to do some raycasts and vector rotations. Would this be a bad (expensive) solution? What other ways are there of moving along an uneven terrain?