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

#import <CCActionInterval.h>

+ Inheritance diagram for CCRotateTo:
+ Collaboration diagram for CCRotateTo:

List of all members.

Public Member Functions

(id) - initWithDuration:angle:
(id) - initWithDuration:angleX:angleY:

Static Public Member Functions

(id) + actionWithDuration:angle:
(id) + actionWithDuration:angleX:angleY:

Protected Attributes

float _dstAngleX
float _startAngleX
float _diffAngleX
float _dstAngleY
float _startAngleY
float _diffAngleY

Detailed Description

Rotates a CCNode object to a certain angle by modifying it's rotation attribute. The direction will be decided by the shortest angle.

Member Function Documentation

+ (id) actionWithDuration: (ccTime duration
angle: (float)  angle 

creates the action

+ (id) actionWithDuration: (ccTime t
angleX: (float)  aX
angleY: (float)  aY 

creates the action with separate rotation angles

- (id) initWithDuration: (ccTime duration
angle: (float)  angle 

initializes the action

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