- Home /
Questions about movement on uneven/slopped terrain and terrain coliders
Hi,
I have a few questions related to the game I'm developing.
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 (like shown in the picture).
What would be your approach to this? What will be the standard way to tackle it? Launching raycast from the bottom left angle and calculating the distance from the ground, then rotating according to that?
Also, what is the best collider for that kind of terrain? I'm planning on making it destructible, so it can take any shape.
Your answer
Follow this Question
Related Questions
Raycast2D Layermasks and incomplete docs 1 Answer
How do I prevent characters from being able to land on each others heads? 1 Answer
How to make my character stop stuttering when walking down a slope? 2 Answers
Raycasts left/right problem. One works, other doesn't...? 1 Answer
2D Character that Climbs Everything Including On Walls/Ceiling 1 Answer