# Rail (cities.md section 11). Read by the game and the server (src/model/rail/Rails.cpp).
#
# [rail Speeds]
#   max speed     m/s: the speed limit on straight track
#   min speed     m/s: the speed limit on the tightest turn (a single curve block)
#   side accel    m/s2 a train may pull sideways through a turn, or over a crest or a dip. A
#                 segment's limit where its path turns with radius r is sqrt(side accel * r), so
#                 100 m/s wants a turn about a kilometre across.

[rail Speeds]
max speed = 120
min speed = 3
side accel = 10

# [rail Lifts]
#   speed         m/s a lift car rides its rail at
#   accel         m/s2 it gains and sheds: it eases away from a stop and into the next
#
# [rail Trains]
#   accel         m/s2 a train gains under power
#   brake         m/s2 it sheds braking. A train keeps the limits ahead of it by braking in time,
#                 so this is also how far ahead it looks: v * v / (2 * brake)
#   coast         m/s2 it loses rolling with no power
#   creep         m/s it comes up to a buffer or the end of the line at
#   look          m between its looks at the limits ahead
#   stop wait     s a train run by its Train Computer stands at each Rail Stop, and at the end of
#                 the line before it runs back

[rail Lifts]
speed = 5
accel = 2.5

[rail Trains]
accel = 2.5
brake = 5
coast = 0.25
creep = 2
look = 0.5
stop wait = 8
