cocos2d-iphone  2.1
Improved Cocos2D API Reference (iOS version) for www.kobold2d.com developers
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines
CCCatmullRomTo Class Reference

#import <CCActionCatmullRom.h>

+ Inheritance diagram for CCCatmullRomTo:
+ Collaboration diagram for CCCatmullRomTo:

List of all members.

Public Member Functions

(id) - initWithDuration:points:

Static Public Member Functions

(id) + actionWithDuration:points:

Detailed Description

An action that moves the target with a CatmullRom curve to a destination point. 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


Member Function Documentation

+ (id) actionWithDuration: (ccTime dt
points: (CCPointArray *)  points 

creates an action with a Cardinal Spline array of points and tension

- (id) initWithDuration: (ccTime dt
points: (CCPointArray *)  points 

initializes the action with a duration and an array of points


The documentation for this class was generated from the following file: