Jump to content


Any ideas on car AI?


2 replies to this topic

#1 aungsithu

    New Member

  • Members
  • Pip
  • 1 posts

Posted 06 November 2008 - 08:27 AM

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 alphadog

    DevMaster Staff

  • Moderators
  • 1716 posts

Posted 06 November 2008 - 01:41 PM

Check out:
http://www.red3d.com/cwr/steer/

#3 imerso

    Senior Member

  • Members
  • PipPipPipPip
  • 434 posts
  • LocationBrasil

Posted 08 November 2008 - 12:38 AM

I used splines (ex: http://en.wikipedia....ki/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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users