Type Definitions
-
PathConfig
-
Settings for a PathFollower.
Type:
- object
- Since: 3.0.0
- Source: src/gameobjects/pathfollower/typedefs/PathConfig.js (Line 1)
Properties:
Name Type Argument Default Description durationnumber <optional>
1000 The duration of the path follow in ms. Must be
> 0.fromnumber <optional>
0 The start position of the path follow, between 0 and 1. Must be less than
to.tonumber <optional>
1 The end position of the path follow, between 0 and 1. Must be more than
from.positionOnPathboolean <optional>
false Whether to position the PathFollower on the Path using its path offset.
rotateToPathboolean <optional>
false Should the PathFollower automatically rotate to point in the direction of the Path?
rotationOffsetnumber <optional>
0 If the PathFollower is rotating to match the Path, this value is added to the rotation value. This allows you to rotate objects to a path but control the angle of the rotation as well.
startAtnumber <optional>
0 Current start position of the path follow, must be between
fromandto.
