Determines linear motion along a set of points.
Constructor
Variables
Functions
View source
Parameters:
addPoint (x : Float = 0, y : Float = 0) : Void
Adds the point to the path.
Parameters:
x | X position. | |
y | Y position. |
View source
Parameters:
Returns:
getPoint (index : Int = 0) : Vector2
Gets a point on the path.
Parameters:
index | Index of the point. |
Returns:
The Point object.
View source
Parameters:
setMotion (duration : Float, ease : EaseFunction) : Void
Starts moving along the path.
Parameters:
duration | Duration of the movement. | |
ease | Optional easer function. |
View source
Parameters:
setMotionSpeed (speed : Float, ease : EaseFunction) : Void
Starts moving along the path at the speed.
Parameters:
speed | Speed of the movement. | |
ease | Optional easer function. |