PGD Home

P0-B4: Part 1209: Traffic System

by on Mar.05, 2023, under Astral Realms, Meridian, P-0, P0_B4, Software and Games, Spiritus Astrum

The idea that I had to solve the direction of travel problem seems to work, but it was more complex that I thought.

Searching for the nearest intersection node in the grid was quite complex, especially when I needed to make sure that it was an intersection with no obstructions (such as buildings, etc) in between.

I was eventually able to solve this, but there were still other minor issues relating to collisions between vehicles, etc.

I also had to add a solution for a situation where the AI could no longer travel in any direction. To resolve this case, I simply had the AI change lanes if there was no path possible on their current lane.

This solution now works reasonably well.

There are still some minor issues to fix, and I still need to add some simple placeholder art, but the main work on this seems to be done.

Facebooktwitterredditpinterestlinkedinmail

Comments are closed.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!