Inherits from CCActionInterval
Conforms to NSCopying
Declared in CC3Actions.h

Overview

CC3ActionRotateToAngle rotates a target CC3Node to a specific rotationAngle.

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 on the node appropriately prior to running this action.

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.

Class Methods

actionWithDuration:rotateToAngle:

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

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

Declared In

CC3Actions.h

Instance Methods

initWithDuration:rotateToAngle:

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

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

Declared In

CC3Actions.h