Behavior : RotateTo

Author:Rex.Rainbow

Download

Properties

Activated

  • Enable if you wish this to begin at the start of the layout.
    • Options : ["No","Yes"]

Max speed

  • Maximum speed, in degree per second.

Acceleration

  • Acceleration, in degree per second per second.

Deceleration

  • Deceleration, in degree per second per second.

Actions

Action:Set enable

  • Enable the object's RotateTo behavior.
    • Activated ( Combo ) : Enable the behavior.
      • Options : ["No","Yes"]

Speed

Action:Set maximum speed

  • Set the object's maximum speed.
    • Max speed ( number ) : Maximum speed, in degree per second.

Action:Set acceleration

  • Set the object's acceleration.
    • Acceleration ( number ) : The acceleration setting, in degree per second per second.

Action:Set deceleration

  • Set the object's deceleration.
    • Deceleration ( number ) : The deceleration setting, in degrees per second per second.

Action:Set current speed

  • Set the object's Current speed.
    • Current speed ( number ) : Current speed, in degree per second.

Stop

Action:Stop

  • Stop moving.

Target angle

Action:Rotate to angle

  • Set target angle to rotate toward.
    • Angle ( number ) : The angle to rotate toward.
    • Clockwise ( Combo ) : Rotate clockwise or anti-clockwise.
      • Options : ["Anti-Clockwise","Clockwise","Nearest side"]

Action:Rotate to object

  • Set target angle to rotate toward.
    • Target ( object ) : Target object.
    • Clockwise ( Combo ) : Rotate clockwise or anti-clockwise.
      • Options : ["Anti-Clockwise","Clockwise","Nearest side"]

Action:Rotate by delta angle

  • Set target angle to rotate toward by delta angle.
    • dA ( number ) : The delta angle to rotate toward, in degree.
    • Clockwise ( Combo ) : Rotate clockwise or anti-clockwise.
      • Options : ["Anti-Clockwise","Clockwise","Nearest side"]

Action:Rotate toward to position

  • Set target angle toward to position.
    • X ( number ) : X co-ordinate of target position.
    • Y ( number ) : Y co-ordinate of target position.
    • Clockwise ( Combo ) : Rotate clockwise or anti-clockwise.
      • Options : ["Anti-Clockwise","Clockwise","Nearest side"]

Expressions

Current

Expression:Activated

  • The current activated state of behavior.

Expression:Speed

  • The current object speed, in degree per second.

Setting

Expression:MaxSpeed

  • The maximum speed setting, in degree per second.

Expression:Acc

  • The acceleration setting, in degree per second per second.

Expression:Dec

  • The deceleration setting, in degree per second per second.

Target

Expression:TargetAngle

  • The angle to spin toward.

Conditions

Condition:Is rotating

  • Is object rotating.

Speed

Condition:Compare speed

  • Compare the current speed of the object.
    • Comparison ( cmp ) : Choose the way to compare the current speed.
    • Speed ( number ) : The speed, in degree per second, to compare the current speed to.

Target

Condition:On hit target angle

  • Triggered when hit target angle.