AI Spacing


The issue I ran into finally adding multiple AI racers from my single AI testing is that they ended up cluttered up all the time because they have the same goals and points around the map. This made it hard for each AI to move because they are stuck together Demonstration image above.

The way I decided to fix this issue is by adding a collider that scans cars in the front half of the AI’s car space. this was a bit of a difficult challenge due to this scanning itself, not scanning only in the red area Demonstration image above, and scanning the correct things. I fixed this by just finding the angle in where the AI is facing and where the other car is and if its behind the angle then they don’t have to respect cars behind them but only cars in front and beside them. This made them look more natural of a player and like each AI had their own destination and respects each racers space Demonstration video above.

Published By: Christian Camargo-Cortez Date: 4/19/2024

Get BlazeRunners : Bullet Ballet

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.