This is the most basic follower type in Spline Plus
Variables |
Description |
On/Off switch |
Enable/Disable follower animation. |
Follower game object slot |
The game object that you want to use as follower, |
"Event" button |
This opens the Follower Events window, |
Selected Settings
Variables |
Description |
Branch key |
the current branch key the follower is on, To set a branch key for the follower, select the branch from your scene view then click on  |
Distance |
The current distance of the follower on the branch, the max is the length of the branch. |
Speed |
The speed of the follower. |
Position |
Translation of the follower with a button to switch between World and local space. |
Rotation |
Rotation of the follower, with a button to turn Rotation On/Off in case this was needed. |
Follower animation type |
“Auto animated” move your follower with a defined speed along the spline. “Keyboard input” move your follower using keyboard inputs,“Scene click” move your follower to the closest spline vertex to your scene view mouse click. |
Animation type
Variables |
Description |
Auto Animated |
Move your follower with a defined speed along the spline. Acceleration : this is the time in seconds it takes for the follower to gain it’s full speed or completely stop when game starts. |
Keyboard Input |
Move your follower using keyboard inputs, Acceleration : this is the time in seconds it takes for the follower to gain it’s full speed or completely stop when game starts. Brake force : this represents the brakes force, the minimum value for this is 1”no impact on follower speed”.brakes force will impact the follower speed as its value goes up, Flip direction: this will allow you to keep the follower forward direction when you switch between “Up arrow key” and “Down arrow key”. |
Scene Click |
Move follower to the closest spline vertex in your scene view or game view mouse click. |
Projected Path Following
Projected path following is using raycasting on followers to sense its surroundings, the path following data is gathered from both sources , surrounding and raw spline data then it will be combined to form one final modified path following data to be used by followers,
there are currently two ray sensors on each follower , one for the ground and one for the obstacles in front as you can see bellow
when “Projected Path Following" is set to On, you get the following settings which will allow you to perform advanced customization
Variables |
Description |
Layer Mask |
Specifies layers to use for your projection rays |
Ray transform |
Used to define the transform that will hold the rays. |
Ground Ray Length |
used to edit the ground sensor ray length. |
Obstacle Ray Length |
used to edit the obstacle sensor ray length. |
Follow Ground Normal |
The follower will use the ground mesh normals if set to true, if set to false, follower will use spline normals data instead. |