Generic train carriage direction in train
Posted: Wed Jun 27, 2018 3:20 pm
When looking at all the carriages on a LuaTrain, you can tell which of the locomotive carriages are facing backward or forward by checking which .locomotives array they're present in, but for the remaining carriages the best way I can find to determine their current facing is to compare .orientation (which gets complex fast if the train's on a curve).
For my purposes it's pretty much cosmetic (faithfully keeping which way the artillery cars are facing) but it'd be nice to have a way to easily see which carriages are forward-facing and which are back-facing for the whole train.
For my purposes it's pretty much cosmetic (faithfully keeping which way the artillery cars are facing) but it'd be nice to have a way to easily see which carriages are forward-facing and which are back-facing for the whole train.