Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs

I've played much and found some issiues:

1. Whole path is set when car starts. If we change roads during it's journey it will stop and mostly will stuck. Sometimes it regenerates path but mostly stay at position. If we add some roads near - it may try change path. I need to create 2 separate paths (new and old) and wait if all will drive by new path, than can delete old one.

It should regenerate path if cannot move because there is no road (from calculated path).

(1 edit)

Thanks for the comments.  Unfortunately, it kills performance if stuck cars constantly check for new paths.  I tried to strike a good balance between quickly-adapting AI and performance.

Also, one might argue that quickly adapting to new routes is somewhat unrealistic.  Drivers that have set out to work already have their routes in mind (or programmed into GPS).  Yes, people certainly take other routes when stuck in traffic - but they usually don't do it instantly