- Home /
simple 2d car Ai
hi . i have a top down Car Game. how can i implement Ai for the Cars? how the car follow the way points? i want to not only car follow the way points ,but also face itself to the road.and rotate itself along the path. i show you in the Picture. thank you
@erfan, I am learning a lot on racing games' logic from this beautiful tutorial. It also manages waypoints, and the way AI cars approach them. I think that it worths more than a textual explanation...
Yes, but it is 3d. and have wheel collider . but I think in my approach I can do it vary simpler. just by doing rotate an translate and Lerp function. but I don't know exactly what I must do?
You are right. Don't ask me why, but I assumed that you use 3d models with a top-down camera (so, the situation would have been the same as in that tutorial).
There are many posts on paths and waypoints. One easy was is to use iTween.
Your answer
Follow this Question
Related Questions
Make a Lapping System for a Car Game 1 Answer
Rotating Around Joints 0 Answers
Translate and rotate at the sametime problem 1 Answer
Racing Ai? long read 1 Answer
Translate or Rotate a texture of a cube 2 Answers