Functions§
- apply_
brakes - System to apply brakes to trains. Little bit of a hack, since brakes would in reality slow down the wheels which would in turn deliver less force/acceleration to the train.
- handle_
bogie 🔒 - Returns true if the bogie was successfully handled (not derailed)
- move_
carriages_ to_ bogies - System that moves carriages to their bogies, aligning them properly
- move_
on_ rail_ to_ diff_ segment - System that moves bogies to different track segments if they exceed the segment’s domain
- move_
track_ 🔒pos_ by_ meters - move_
trains_ with_ velocity - System that moves carriage’s bogies with respect to the carriage velocity
- update_
trains_ acceleration - Updates trains acceleration based on its current velocity, power and mass