Public Member Functions | Static Public Member Functions

CC3RotateToAngle Class Reference

CC3RotateToAngle is a CCActionInterval that rotates a target CC3Node to a specific rotationAngle, by updating the rotationAngle propety. More...

#import <CC3ActionInterval.h>

Inheritance diagram for CC3RotateToAngle:
Inheritance graph
[legend]
Collaboration diagram for CC3RotateToAngle:
Collaboration graph
[legend]

List of all members.

Public Member Functions

(id) - initWithDuration:rotateToAngle:

Static Public Member Functions

(id) + actionWithDuration:rotateToAngle:

Detailed Description

CC3RotateToAngle is a CCActionInterval that rotates a target CC3Node to a specific rotationAngle, by updating the rotationAngle propety.

The rotationAngle property rotates the node around the axis set in the rotationAxis property of the node. Make sure that you set the rotationAxis property appropriately.

The rotational travel will be minimized, taking into consideration the cyclical nature of rotation. For exmaple, a rotation from 10 degrees to 350 degrees in any axis should travel -20 degrees, not the +340 degrees that would result from simple subtraction.


Member Function Documentation

+ (id) actionWithDuration: (ccTime)  t
rotateToAngle: (GLfloat)  anAngle 

Allocates and initializes an autoreleased instance to rotate the target node to the specified rotation angle, within the specified time duration.

- (id) initWithDuration: (ccTime)  t
rotateToAngle: (GLfloat)  anAngle 

Initializes this instance to move the target node to the specified rotation angle, within the specified time duration.


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