Hello, dear community! I'm working on a sort of a top-down racing game. I'd like to know how should I get back my car on the center of a track when it hits the track's border. I believe that the car should appear somewhere near the border hit point. Here is the picture of what I was thinking about:
Thank you in advance!
Develop games in your browser. Powerful, performant & highly capable.
I think the easiest way would be to create waypoints and when the car is offtrack set its position to the nearest waypoint..
Thank you, LittleStain! I had that idea in mind too but thought that this is too blunt for a solution )
Maybe someone knew a better way to do it?