Page 1 of 1

[0.18.1] Train rerouting instantly reverses direction

Posted: Mon Jan 27, 2020 12:03 am
by Hannah97Gamer
When setting up a double headed train route, I set the destination to the station I had just left. The train instantly switched directions as if it had hit a much harder than brick wall. There was no deceleration, just an instant switch from going one way to going the other.
2020-01-26 18-55-20.mp4
(5.98 MiB) Downloaded 62 times
I would have expected the train to come to a stop, then start accelerating the other direction.

Re: [0.18.1] Train rerouting instantly reverses direction

Posted: Mon Jan 27, 2020 8:19 am
by boskid
Train could not find a path that would keep movement direction and so it instantly stopped and found path in opposite direction. This is how trains work. This is good approximation to avoid cases where train would have to remember part of old path to decelerate (going straight back could enter blocks reserved for other trains and collide) and then reversing that part and attaching it to existing path found or repathing from the brake point. Too much complication, not enough value.

Also related: 44866