Class cc.RotateTo

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

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

  • {cc.RotateTo} clone()
    returns a new clone of the action
    Returns:
    {cc.RotateTo}
  • <static> {cc.RotateTo} cc.RotateTo.create(duration, deltaAngleX, deltaAngleY)
    creates the action with separate rotation angles
    // example
    var rotateTo = cc.RotateTo.create(2, 61.0);
    Parameters:
    {Number} duration
    duration in seconds
    {Number} deltaAngleX
    deltaAngleX in degrees.
    {Number} deltaAngleY Optional
    deltaAngleY in degrees.
    Returns:
    {cc.RotateTo}
  • {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