P0-B4: Part 1207: Traffic System
by PhoenixGames on Mar.05, 2023, under Astral Realms, Meridian, P-0, P0_B4, Software and Games, Spiritus Astrum
The first step with the traffic system is to generate separate graphs for the pedestrians and the vehicles.
I may also need to generate a different graph for each “lane” of the streets (left lane, right lane, etc).
Generating the graphs shouldn’t be difficult, since they are generated asynchronously.
The problem will be trying to make sure that the vehicles always travel in the same direction as each other, and don’t collide, etc.
The A* pathfinding project that I am using for navigation has no built in support for this (that I am aware of, at least).