Hi! I'm currently implementing some basic CPU-controlled cars for my game.
It's a bit harder than i thought
What is the preferred way to implement something like a car that follows a road ?
My try was this: i've placed some points along the track, near curves etc, and i programmed the car so that it heads to the next point, and once reached go on with the next one.
This kind of work, but there are some good problems:
- -If the car for some reason miss the point (ie it is pushed by another car), it tries to go back to that point before proceeding with the following.
-The CPU cars tend to align one after the other, and all follows the very same path
-Cars don't avoid obstacles.
I don't need a to have extremely good AI, but something working and easy to implement
Any suggestion ?
PS how the hell does that list tag work ?!
Bookmarks