Page 1 of 1

Train Chain Signal Pathfinding Heuristic

Posted: Wed Oct 23, 2024 11:58 pm
by ketpain
I would really like to have trains be able to "cut" in front of another train's path or at least test if the train can make a crossing in front of a train.

The way you'd solve a collision in this regard is to do some quick mafs such as if the top speed of the train + distance < time it would take for the train to cross over another route successfully.

This probably bothers me most about the train system.

Otherwise we have to let the train cross over the signals and be "behind" the train before the train signals are "freed" and lets others use the route. It's silly to have a whole route cut off because the train is trying to get to a destination..

(Yes i know if you add train stops it helps negate this, but it's silly to deal with regardless)