Class cc.CardinalSplineBy
- Defined in: CCActionCatmullRom.js
- Extends cc.CardinalSplineTo
Constructor Attributes | Constructor Name and Description |
---|---|
Cardinal Spline path.
|
Method Summary
Class Detail
cc.CardinalSplineBy()
Cardinal Spline path. http://en.wikipedia.org/wiki/Cubic_Hermite_spline#Cardinal_spline
//create a cc.CardinalSplineBy var action1 = cc.CardinalSplineBy.create(3, array, 0);
Method Detail
-
{cc.CardinalSplineBy} clone()returns a new clone of the action
- Returns:
- {cc.CardinalSplineBy}
-
creates an action with a Cardinal Spline array of points and tension
- Parameters:
- {Number} duration
- {Array} points
- {Number} tension
- Returns:
- {cc.CardinalSplineBy}
-
ctor()Constructor
-
{cc.CardinalSplineBy} reverse()reverse a new cc.CardinalSplineBy
- Returns:
- {cc.CardinalSplineBy}
-
startWithTarget(target)
- Parameters:
- {cc.Node} target
-
updatePosition(newPos)update position of target
- Parameters:
- {cc.Point} newPos