Any ideas on car AI?

5bc92f2cb3857c5acffdc48f4ccdf662
0
aungsithu 101 Nov 06, 2008 at 08:27

Hi,

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.

8676d29610e6c98d6dd2d9c38528cd9c
0
alphadog 101 Nov 06, 2008 at 13:41
17ba6d8b7ba3b6d82970a7bbba71a6de
0
vrnunes 102 Nov 08, 2008 at 00:38

I used splines (ex: http://en.wikipedia.org/wiki/Cubic_spline) 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.