Class cc.CardinalSplineBy
Extends
cc.CardinalSplineTo.
Defined in: CCActionCatmullRom.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Cardinal Spline path.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
cc.CardinalSplineBy.create(duration, points, tension)
creates an action with a Cardinal Spline array of points and tension
|
ctor()
Constructor
|
|
reverse()
reverse a new cc.CardinalSplineBy
|
|
startWithTarget(target)
|
|
updatePosition(newPos)
update position of target
|
- Methods borrowed from class cc.CardinalSplineTo:
- getPoints, initWithDuration, setPoints, update
- Methods borrowed from class cc.ActionInterval:
- getAmplitudeRate, getElapsed, isDone, setAmplitudeRate, step
- Methods borrowed from class cc.FiniteTimeAction:
- getDuration, setDuration
- Methods borrowed from class cc.Action:
- copy, copyWithZone, description, getOriginalTarget, getTag, getTarget, release, retain, setOriginalTarget, setTag, setTarget, stop
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
<static>
{cc.CardinalSplineBy}
cc.CardinalSplineBy.create(duration, points, tension)
creates an action with a Cardinal Spline array of points and tension
- Parameters:
- {Number} duration
- {cc.PointArray} 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