Any ideas on car AI?

aungsithu 101 Nov 06, 2008 at 08:27


I’m working a racing sim.
There’s no player controlled car in this application.
All the cars will race automatically.
I could implement AI cars following waypoints as a guide on the track.
One specific requirement for my application is these cars must be finished the race in specific order (ranks, position, whatever).
If I use pure AI and physics then the result may not be exactly as I want.

So, any ideas on this specific requirement?

Thanks in advance.

2 Replies

Please log in or register to post a reply.

alphadog 101 Nov 06, 2008 at 13:41
vrnunes 102 Nov 08, 2008 at 00:38

I used splines (ex: in one racing game with a great success.

First I created some base splines around the track, then randomized slightly every knot, giving the AI racers a visually natural feeling of “intelligent” driving, because they never followed exactly the curves.

That was just quick to implement and quite rewarding.