Tweens a position along a bezier path. More...
Inherits Polycode::Tween.
Public Member Functions | |
BezierPathTween (Vector3 *target, BezierCurve *curve, int easeType, Number time, bool repeat=false) | |
Constructor. |
Tweens a position along a bezier path.
This class automatically animates a 3d position over a 3d bezier curve. You can use it for 2d curves as well, of course, just ignore the z!
BezierPathTween::BezierPathTween | ( | Vector3 * | target, | |
BezierCurve * | curve, | |||
int | easeType, | |||
Number | time, | |||
bool | repeat = false | |||
) |
Constructor.
target | Target vector to animate. | |
curve | The curve to animate along. | |
easeType | Easing type ( |
time | The duration of the tween. | |
repeat | If true, this tween will repeat over and over. |