Class cc.RotateTo
- Defined in: CCActionInterval.js
- Extends cc.ActionInterval
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Rotates a cc.Node object to a certain angle by modifying it's
rotation attribute.
|
Method Summary
Class Detail
cc.RotateTo()
Rotates a cc.Node object to a certain angle by modifying it's
rotation attribute.
The direction will be decided by the shortest angle.
The direction will be decided by the shortest angle.
Field Detail
Please use cc.rotateTo instead
Creates a RotateTo action with separate rotation angles
Method Detail
-
{cc.RotateTo} clone()returns a new clone of the action
- Returns:
- {cc.RotateTo}
-
ctor(duration, deltaAngleX, deltaAngleY)Creates a RotateTo action with x and y rotation angles Constructor of cc.RotateTo
var rotateTo = new cc.RotateTo(2, 61.0);
- Parameters:
- {Number} duration
- duration in seconds
- {Number} deltaAngleX
- deltaAngleX in degrees.
- {Number} deltaAngleY Optional
- deltaAngleY in degrees.
-
{Boolean} initWithDuration(duration, deltaAngleX, deltaAngleY)
- Parameters:
- {Number} duration
- {Number} deltaAngleX
- {Number} deltaAngleY
- Returns:
- {Boolean}
-
reverse()RotateTo reverse not implemented
-
startWithTarget(target)
- Parameters:
- {cc.Node} target
-
update(time)
- Parameters:
- {Number} time
- time in seconds