FollowPath


Declaration

public sealed class FollowPath : MonoBehaviour

Description

Moves an object along a predefined path.

Properties

pathThe transform comprising of all the child nodes in the path.
nodeFromThe transform of the node that the object is currently moving from (Read only).
nodeToThe transform of the node that the object is currently moving to (Read only).
currentIndexThe index of the node that the object is currently moving to (Read only).
dampingHow quickly the object moves between nodes. Small numbers make the object more responsive. Larger numbers make the object respond more slowly.
maxSpeedThe maximum speed the object can move between nodes.
minProximityOnce the object is less than this distance to the current node, then it will advance to the next one.
spaceThe coordinate space the object moves in.
loopingThe looping behavior, if desired.
reversedMoves the object between nodes in reverse.

Methods

RestartRestarts the path at the first node.