I have a vehicle that needs to move on a randomly generated terrain and handle slopes. I'm not using wheels, but instead moving the vehicle with velocity. The ideal case would be if I can make the vehicle rotate according to the terrain edges and move smoothly as shown here:
How can I accomplish this? Launching raycast from the bottom left angle and calculating the distance from the ground, then rotating according to that?