





🌟 Special thanks to our amazing supporters:
✨ $10 Tier: [Geeks Love Detail]
🌈 $5 Tier: [Arch Toasty][Benedikt][David Martínez Martí]
Welcome to GRITS Racing version 0.2.0! The long-awaited AI has finally been added to our early-access game. This is just the first round of the AI and, thus, it is not complete yet. The 5 personalities I built for the 4 cars (one of the personalities changes depending on number of players) are behaving more or less as I had hoped. You can expect more personality tweaking to come but, primarily, what is missing from the AI agents are pit stops and braking, to make them more competitive and/or interesting.
The AI agents know how to find the pit lane, when they choose to (which is rare at the moment), but they don't yet know when or how to make a pit stop. The AI agents only get one car apiece, and that probably won't change. Also, originally, I hadn't planned to program pit stops into the AI either (not intentional pit stops anyhow) -- they were originally specced to be more of the environment than the race -- but testing as a single player has shown that at least some of the AI agents should go for a pit stop when they need to -- particularly with a small number of players. Otherwise, it is too easy to knock them out of the race to kill the competition... which is boring when playing alone, and maybe in two-player mode as well.
The AI currently knows how to let off the gas when over-committed to a turn... but this is not enough. They really need to also know which turns to slow down for ahead of time, and by how much. Thus, they are currently pretty stupid about turn 5 on the Finger Lakes grand prix track and will quickly destroy themselves on this track.
Enough of what's missing, what about what is included in this update? Much like how I went overly crazy with the physics in the game, I did a similar thing with the AI. I've mentioned before that I didn't want just another racing game with AI cars chasing a bunch of waypoints around the track. And, so, I didn't do that. I do have a few waypoints on each track because I need three or four just to keep the agents pointed in the right direction around the track. After that, however, it's up to the AI agent to decide how best to get from one point to another, or how to best recover from a wreck. To allow for this, I create a navigation mesh for each track with different navigation areas of different cost within that mesh. Then, I use A* pathfinding for long-distance navigation decisions and context steering for local navigation decisions. This gives the agents a lot of freedom to express their personalities, but also comes with a lot of settings to tweak and it could take a while to dial it all in.
The current AI personalities are these:
[ 5982 ]
[ 1984 ]
[ 3759 ]