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

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

This behavior has no outputs.

 

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

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk