Polycode
Polycode::BezierPathTween Class Reference

Tweens a position along a bezier path. More...

Inherits Polycode::Tween.

List of all members.

Public Member Functions

 BezierPathTween (Vector3 *target, BezierCurve *curve, int easeType, Number time, bool repeat=false)
 Constructor.

Detailed Description

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!


Constructor & Destructor Documentation

BezierPathTween::BezierPathTween ( Vector3 target,
BezierCurve curve,
int  easeType,
Number  time,
bool  repeat = false 
)

Constructor.

Parameters:
targetTarget vector to animate.
curveThe curve to animate along.
easeTypeEasing type (
See also:
Tween)
Parameters:
timeThe duration of the tween.
repeatIf true, this tween will repeat over and over.