CCActionRotateTo Class Reference
| Inherits from | CCActionInterval : CCActionFiniteTime : CCAction : NSObject |
| Conforms to | NSCopying |
| Declared in | CCActionInterval.h |
Overview
This action rotates the target to the specified angle. The direction will be decided by the shortest route.
Class Methods
actionWithDuration:angle:
Creates the action.
+ (id)actionWithDuration:(CCTime)duration angle:(float)angleParameters
- duration
Action duration.
- angle
Angle to rotate to (degrees).
Return Value
New rotate action.
Declared In
CCActionInterval.hactionWithDuration:angle:simple:
Creates the action.
+ (id)actionWithDuration:(CCTime)duration angle:(float)angle simple:(bool)simpleParameters
- duration
Action duration.
- angle
Angle to rotate to (degrees).
- direct
Simple rotation, no smart checks.
Return Value
New rotate action.
Declared In
CCActionInterval.hInstance Methods
initWithDuration:angle:
Initializes the action.
- (id)initWithDuration:(CCTime)duration angle:(float)angleParameters
- duration
Action duration.
- angle
Angle to rotate to (degrees).
Return Value
New rotate action
Declared In
CCActionInterval.hinitWithDuration:angle:simple:
Initializes the action.
- (id)initWithDuration:(CCTime)duration angle:(float)angle simple:(bool)simpleParameters
- duration
Action duration.
- angle
Angle to rotate to (degrees).
- direct
Simple rotation, no smart checks.
Return Value
New rotate action
Declared In
CCActionInterval.h