Class cc.RotateTo
Extends
cc.ActionInterval.
Defined in: CCActionInterval.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Rotates a cc.Node object to a certain angle by modifying it's
rotation attribute.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
cc.RotateTo.create(duration, deltaAngle)
|
initWithDuration(duration, deltaAngle)
|
|
reverse()
RotateTo reverse not implemented
|
|
startWithTarget(target)
|
|
update(time)
|
- Methods borrowed from class cc.ActionInterval:
- getAmplitudeRate, getElapsed, isDone, setAmplitudeRate, step
- Methods borrowed from class cc.FiniteTimeAction:
- getDuration, setDuration
- Methods borrowed from class cc.Action:
- copy, copyWithZone, description, getOriginalTarget, getTag, getTarget, release, retain, setOriginalTarget, setTag, setTarget, stop
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.
Method Detail
<static>
{cc.RotateTo}
cc.RotateTo.create(duration, deltaAngle)
// example var rotateTo = cc.RotateTo.create(2, 61.0);
- Parameters:
- {Number} duration
- duration in seconds
- {Number} deltaAngle
- deltaAngle in degrees.
- Returns:
- {cc.RotateTo}
{Boolean}
initWithDuration(duration, deltaAngle)
- Parameters:
- {Number} duration
- {Number} deltaAngle
- Returns:
- {Boolean}
reverse()
RotateTo reverse not implemented
startWithTarget(target)
- Parameters:
- {cc.Node} target
update(time)
- Parameters:
- {Number} time
- time in seconds