v2.0.2
Instance Methods | Class Methods | List of all members
CC3ActionRotateTo Class Reference

#import <CC3Actions.h>

Inheritance diagram for CC3ActionRotateTo:
Inheritance graph
[legend]

Instance Methods

(id) - initWithDuration:rotateTo:
 
- Instance Methods inherited from CC3ActionTransformTo
(id) - initWithDuration:endVector:
 
- Instance Methods inherited from CC3ActionTransformVector
(id) - initWithDuration:differenceVector:
 

Class Methods

(id) + actionWithDuration:rotateTo:
 
- Class Methods inherited from CC3ActionTransformTo
(id) + actionWithDuration:endVector:
 
- Class Methods inherited from CC3ActionTransformVector
(id) + actionWithDuration:differenceVector:
 

Detailed Description

CC3ActionRotateTo rotates a target CC3Node to a specific orientation.

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.

Method Documentation

+ (id) actionWithDuration: (CCTime)  t
rotateTo: (CC3Vector aRotation 

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

- (id) initWithDuration: (CCTime)  t
rotateTo: (CC3Vector aRotation 

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


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