Inherits from CCActionInterval : CCActionFiniteTime : CCAction : NSObject
Declared in CCActionCatmullRom.h

Overview

Creates an action, based on a cardinal sline path.

Properties

points

The array of control points associated with the cardinal spline.

@property (nonatomic, readwrite, strong) CCPointArray *points

Declared In

CCActionCatmullRom.h

Class Methods

actionWithDuration:points:tension:

Creates a cardinal spline action, based on control points and tension. A tension of 0, will return a curve following the straight lines in the point array. Increase value of tension to smooth out the curve.

+ (id)actionWithDuration:(CCTime)duration points:(CCPointArray *)points tension:(CGFloat)tension

Parameters

duration

Action duration.

points

Points to use for spline.

tension

The tension of the spline curve.

Return Value

New spline action.

Declared In

CCActionCatmullRom.h

Instance Methods

initWithDuration:points:tension:

Initializes a cardinal spline action, based on control points and tension. A tension of 0, will return a curve following the straight lines in the point array. Increase value of tension to smooth out the curve.

- (id)initWithDuration:(CCTime)duration points:(CCPointArray *)points tension:(CGFloat)tension

Parameters

duration

Action duration.

points

Points to use for spline.

tension

The tension of the spline curve.

Return Value

New spline action.

Declared In

CCActionCatmullRom.h