Class Index | File Index

Classes


Class cc.RotateTo


Extends cc.ActionInterval.

Defined in: CCActionInterval.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Rotates a cc.Node object to a certain angle by modifying it's rotation attribute.
Method Summary
Method Attributes Method Name and Description
<static>  
cc.RotateTo.create(duration, deltaAngle)
 
initWithDuration(duration, deltaAngle)
 
RotateTo reverse not implemented
 
 
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.
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

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Jan 09 2013 07:51:53 GMT-0800 (PST)