ModulesΒ§
- observers π
- states π
- templates
- Templates according to which trains should be built. While placing, only the meshes and materials are spawned, everything else is kept in a resource.
StructsΒ§
- Current
Placing πDir - Current
Placing Train - Stores the template of the currently placing train. Used to create the virtual pieces and later the actually placed ones.
- Placing
Train Plugin - Virtual π
- Marker component grouping all of the virtual pieces of the trains together. The virtual pieces store only the information needed to provide visual feedback to the user, all other information is stored in CurrentPlacingTrain.
- Virtual
Bogie π - Virtual
Carriage π - Virtual
Train π
FunctionsΒ§
- get_
filtered_ πintersection - get_
intersection π - get_
n_ πpoints_ along_ active_ track - Tries to find and calculate
n(length ofspacings) points along active track starting at segment and idx, moving along dir. - input_
handler π - Handles switching the direction of the train.
- move_
n_ πmeters_ along_ active - Function which tries to move n meters in global space along active connections.
- move_
virtual_ πcarriages_ to_ bogies - register_
state_ πhandlers - update_
placing_ πtrain - System which updates virtual trainβs bogies positions according to head train position
- update_
state_ πtext