FollowPath
Class in Zigurous.Animation
Declaration
public sealed class FollowPath : MonoBehaviour
Description
Moves an object along a predefined path.
Properties
path | The transform comprising of all the child nodes in the path. |
nodeFrom | The transform of the node that the object is currently moving from (Read only). |
nodeTo | The transform of the node that the object is currently moving to (Read only). |
currentIndex | The index of the node that the object is currently moving to (Read only). |
damping | How quickly the object moves between nodes. Small numbers make the object more responsive. Larger numbers make the object respond more slowly. |
maxSpeed | The maximum speed the object can move between nodes. |
minProximity | Once the object is less than this distance to the current node, then it will advance to the next one. |
space | The coordinate space the object moves in. |
looping | The looping behavior, if desired. |
reversed | Moves the object between nodes in reverse. |
Methods
Restart | Restarts the path at the first node. |