CCActionCatmullRomTo Class Reference
Inherits from | CCActionCardinalSplineTo : CCActionInterval : CCActionFiniteTime : CCAction : NSObject |
---|---|
Declared in | CCActionCatmullRom.h |
Overview
Creates an action, based on a catmull-rom spline path.
A Catmull Rom is a Cardinal Spline with a tension of 0.5.
Note: See CCActionCardinalSplineTo for further information.
Creating a Spline Action
+ actionWithDuration:points:
Creates an action, performing a catmull-rom spline. This is similar to creating a cardinal spline, with a tension of 0.5.
+ (id)actionWithDuration:(CCTime)dt points:(CCPointArray *)points
Parameters
dt |
Action duration. |
---|---|
points |
Points to use for spline. |
Return Value
New catmull-rom action.
See Also
Declared In
CCActionCatmullRom.h
– initWithDuration:points:
Initializes an action, performing a catmull-rom spline. This is similar to creating a cardinal spline, with a tension of 0.5.
- (id)initWithDuration:(CCTime)dt points:(CCPointArray *)points
Parameters
dt |
Action duration. |
---|---|
points |
Points to use for spline. |
Return Value
New catmull-rom action.
See Also
Declared In
CCActionCatmullRom.h