Cargame... opponents. AI Lib?
Cargame... opponents. AI Lib?
Anyone that have done a cargame with AI oppenents...? What AI lib did you use? or did you write your own? Any suggestions?
none that I know of.
But shouldn't car AI be fairly easy - checkout www.gamedev.net and search for AI there. Also look at some books on this
But shouldn't car AI be fairly easy - checkout www.gamedev.net and search for AI there. Also look at some books on this
also take a look at http://irrlicht.sourceforge.net/phpBB2/ ... c.php?t=97. There's links to some good AI libraries. I'd imagine AI for a cargame would not be as hard as for e.g a FPS.
I think you'll do fine with just a pathfinder. Make a path along the middle of the road, give the opponents some freedom around this, but make sure they just follow the path.
heh, that text became pretty crappy, but it's 01:00 over here, and I'm getting tired!
I think you'll do fine with just a pathfinder. Make a path along the middle of the road, give the opponents some freedom around this, but make sure they just follow the path.
heh, that text became pretty crappy, but it's 01:00 over here, and I'm getting tired!
Yeah, if you can get a racing line and have the cars stick to it as closely as possible you can account for driver skill with how close they stick to the racing line. Add in some accounting for what it should do if a car gets within a certain distance of them and the direction they are in and you have a game. I'd be more worried about the car physics if I were you If you wanted to, you could always hard code a racing line into the maps you create, maybe a cheap hack but at least you can determine the line they should follow and so not get any weird behavior.