An action that moves the target with a Cardinal Spline curve to a destination point.
More...
Inherits ActionInterval.
Inherited by CardinalSplineBy, and CatmullRomTo.
An action that moves the target with a Cardinal Spline curve to a destination point.
http://en.wikipedia.org/wiki/Cubic_Hermite_spline#Cardinal_spline
Creates an CardinalSplineTo action with a Cardinal Spline array of control points and tension.
Duration in seconds. An control point array. Goodness of fit.
| var create |
( |
var |
duration, |
|
|
var |
points, |
|
|
var |
tension |
|
) |
| |
|
static |
Creates an CardinalSplineTo action with a Cardinal Spline array of control points and tension.
Duration in seconds. An control point array. Goodness of fit.
| local create |
( |
local |
duration, |
|
|
local |
points, |
|
|
local |
tension |
|
) |
| |
|
static |
Creates an CardinalSplineTo action with a Cardinal Spline array of control points and tension.
Duration in seconds. An control point array. Goodness of fit.
| bool initWithDuration |
( |
float |
duration, |
|
|
PointArray * |
points, |
|
|
float |
tension |
|
) |
| |
Initializes the action with a duration and an array of control points.
Duration in seconds. An control point array. Goodness of fit.
| var initWithDuration |
( |
var |
duration, |
|
|
var |
points, |
|
|
var |
tension |
|
) |
| |
Initializes the action with a duration and an array of control points.
Duration in seconds. An control point array. Goodness of fit.
| local initWithDuration |
( |
local |
duration, |
|
|
local |
points, |
|
|
local |
tension |
|
) |
| |
Initializes the action with a duration and an array of control points.
Duration in seconds. An control point array. Goodness of fit.
| virtual void updatePosition |
( |
Vec2 & |
newPos | ) |
|
|
virtual |
It will update the target position and change the _previousPosition to newPos
The new position.
Reimplemented in CardinalSplineBy.
| var updatePosition |
( |
var |
newPos | ) |
|
|
virtual |
It will update the target position and change the _previousPosition to newPos
The new position.
Reimplemented in CardinalSplineBy.
| local updatePosition |
( |
local |
newPos | ) |
|
|
virtual |
It will update the target position and change the _previousPosition to newPos
The new position.
Reimplemented in CardinalSplineBy.
Return the control point array.
Control point array.
Return the control point array.
Control point array.
Return the control point array.
Control point array.
| virtual void update |
( |
float |
time | ) |
|
|
overridevirtual |
| local update |
( |
local |
time | ) |
|
|
overridevirtual |
The documentation for this class was generated from the following file: