![]() |
cocos2d-iphone
2.1
Improved Cocos2D API Reference (iOS version) for www.kobold2d.com developers
|
#import <CCActionInterval.h>
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 |
Rotates a CCNode object to a certain angle by modifying it's rotation attribute. The direction will be decided by the shortest angle.
+ (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