Mario Kart Style Kart AI (Concept)

Hey guys,

Just wanted to share my concept for how I plan to create this Kart AI system for a Mario Kart-style game, wanted to hear other people’s thoughts on whether this would be a good way to do it.

I would use the A* Pathfinding Project as a base, and on each track I would generate the navigation and create ‘penalties’ for the off-track (grass, sand etc) area so that they will try to stick to the road. Each AI agent would drive towards their target. I have a list of waypoint objects, and the agent would check which waypoint is next in the list and attempt to navigate to it, the radius of the ‘target’ would be wide enough so that it takes up the whole road (so they don’t all attempt to drive through an exact point in the road), upon driving through it, the ‘target’ would be set to the next waypoint in the list, and so on.

Do you think this is the best way to do this? I think that with this I can have obstacle avoidance and so on, so I think it should work… just wanted to check before I start coding it.

Thanks,
-Ben

Yeah sounds fine, you might want to look into nav mesh’s as well.