Rotate By

Description

The Rotate By behavior will rotate the selected object by a specified angle.

This behavior will Trigger an event on completion.

 

Properties

Triggers on Completion

Object A

This is the object that will rotate. By default the current object is selected, but you can tap the graphic and choose any other object in your scene.

Effect

The effect used for the motion tween animation if the duration is greater than 0.

Rotate By

This is the amount you want to rotate the object by. You can drag your finger on the circle to select the angle, or enter your angle manually by tapping "Change Manually".

Duration

How long it will take for the object to rotate to the specified angle.

Interrupt Rotation

If this toggle is on, it will stop any existing rotation behavior, and run the current Rotate by behavior instead. If it is off, it will run multiple rotating behaviors simultaneously, averaging the total rotation between all the running rotate behaviors. This toggle only applies to objects being rotated using the "Rotate" transform behaviors. 

 

Outputs

Object ID

This outputs the Object ID.

 

Examples

If you press a button and want an object to rotate by 45 degrees.

 

Related

Get Rotation

Lock Rotation

Rotate to Angle

Rotate to Object

 

RotateByReference.gif

0 Comments

Article is closed for comments.