Class cc.CatmullRomBy
Extends
cc.CardinalSplineBy.
Defined in: CCActionCatmullRom.js.
Constructor Attributes | Constructor Name and Description |
---|---|
An action that moves the target with a CatmullRom curve by a certain distance. |
Method Attributes | Method Name and Description |
---|---|
<static> |
cc.CatmullRomBy.create(dt, points)
creates an action with a Cardinal Spline array of points and tension
|
- Methods borrowed from class cc.CardinalSplineBy:
- ctor, reverse, startWithTarget, updatePosition
- 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.CatmullRomBy()
An action that moves the target with a CatmullRom curve by a certain distance.
A Catmull Rom is a Cardinal Spline with a tension of 0.5.
http://en.wikipedia.org/wiki/Cubic_Hermite_spline#Catmull.E2.80.93Rom_spline
var action1 = cc.CatmullRomBy.create(3, array);
Method Detail
<static>
cc.CatmullRomBy.create(dt, points)
creates an action with a Cardinal Spline array of points and tension
var action1 = cc.CatmullRomBy.create(3, array);
- Parameters:
- dt
- points