(A way to) Make trains check collision masks of rail segments when pathfinding
Posted: Wed Mar 26, 2025 5:46 pm
Currently trains do collide with rails if they share a collision mask, however they ignore it when pathfinding, resulting in trains trying to go over rails, colliding and destroying such rails and getting stuck. If there was a way to make trains consider the collision mask of the rail segments and try to find a different path if current path contains rails the train collides with, this would allow for more complex train behaviours that aren't feasible otherwise.
For example, this would allow mods to make high-speed trains that can only travel on high-speed rails, in the same network with regular trains that can travel on both types of rails. Currently, high speed trains could attempt going over regular rails resulting in getting stuck.
For example, this would allow mods to make high-speed trains that can only travel on high-speed rails, in the same network with regular trains that can travel on both types of rails. Currently, high speed trains could attempt going over regular rails resulting in getting stuck.