this is used to create followers with train animation behaviour.
Variables |
Description |
On/Off switch |
Enable/Disable train follower animation. |
game object slots |
Train wagons game objects, |
"Event" button |
This opens the Train Events window, |
Selected Settings
This shows two sections, settings for the train and settings for the wagon selected.
Train
Variables |
Description |
Branch key |
the current branch key the train wagons are on, To set a branch key for the train's wagons, select the branch from your scene view then click on  |
Distance |
in case you want the wagons to be placed with equal distance from each other then use this instead of going through each wagon distance individually |
Speed |
The speed of the train. |
Animation type
Variables |
Description |
Auto Animated |
move your train with a defined speed along the spline. Acceleration : this is the time in seconds it takes for the train to gain it’s full speed or completely stop when game starts. |
Keyboard Input |
Move your train using keyboard inputs, Acceleration : this is the time in seconds it takes for the train to gain it’s full speed or to completely stop when you move your train with your keyboard. Brake force : this represents the brakes force, the minimum value for this is 1”no impact on train speed”.brakes force will impact the train speed as its value goes up, Flip direction: this will allow you to keep the train forward direction when you switch between “Up arrow key” and “Down arrow key”. |
Wagon
Variables |
Description |
Distance |
The current distance of the wagon on the branch, the max is the length of the branch. |
Position |
Translation of the wagon with a button to switch between World and local space. |
Rotation |
Rotation of the wagon, with a button to turn Rotation On/Off in case this was needed. |