Trains zig zag on bi-directiona tracks #1486
Labels
BUG
Defect detected
LANE ROUTING
Feature: Lane arrows / connectors
triage
Awaiting issue categorisation
Milestone
based on: #1483 (comment)
For each lane transition routing manager calculates distance between similar lane index between the two lanes.
Similar lane index for bidirectional train tracks can flip if you reverse the segment placement.
Therefore, if you reverse the placement of bidirectional train network, then trains will PREFER to zigzag on middle nodes (to minimize cost of transition) even though all lane transitions will be created.
in the picture I have used 3 bidirectional segments between the two train stations. the middle one is placed at reverse direction. That is why the trains would prefer to zigzag. I also have forced a node in the middle. if you zoom in you notice all lane transitions are created but the preferred transition is the zigzagged one.
in such circumstances:
Also we need to look at the code to see if there is any other situations in which we might compare inner/outer similar lane index.
The text was updated successfully, but these errors were encountered: