Skip to main content

Module systems

Module systems 

Source

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