Lock Rotation

Description

The Lock Rotation behavior will prevent the selected object from rotating in your scene. This behavior will work on scenery, wall, and physics objects. 

This behavior will trigger an event immediately.

 

Properties

Triggers Immediately

Object A

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

Lock Rotation

This toggle switch will select whether or not you want to lock the rotation of the object. If you want to allow an object to rotate after it's been locked use another Lock Rotation behavior with this toggle off.

Interrupt Rotation

If this toggle is on, it will stop your object from rotating immediately. If it is off, it will wait for the current rotation to complete before locking the rotation. This toggle only applies to objects being rotated using the "Rotate" transform behaviors. 

 

Outputs

Object ID

This outputs the Object ID.

 

Examples

If you have a windmill that is rotating using the "Rotate by" behavior, you can stop it using the Lock Rotation behavior.

 

Related

Get Rotation

Rotate By

Rotate to Angle

Rotate to Object

 

LockRotationReference.gif

0 Comments

Article is closed for comments.