Rotate behavior
The Rotate behavior makes an object spin.
Scripting
When using JavaScript or TypeScript coding, the features of this behavior can be accessed via the IRotateBehaviorInstance script interface.
Rotate properties
- Speed
- The rate of rotation, in degrees per second. Use a positive value for clockwise rotation and negative for anticlockwise rotation.
- Acceleration
- The rate the rotation speed changes, in degrees per second per second. Use a positive value to accelerate clockwise and a negative to accelerate anticlockwise.
- Rotation type
- Whether to use 2D or 3D rotation. In 2D mode, the object will rotate by changing its angle. In a 3D mode (Rotation X/Y/Z), the object will rotate around the given axis using 3D rotation. In this case, the object must support 3D rotation (having a Rotation property in the Properties Bar).
- Enabled
- Whether the behavior is initially enabled or disabled. If disabled, it can be enabled at runtime using the Set enabled action.
- Preview Paid plans only
- Enable to run a preview of the behavior directly in the Layout View.
Rotate conditions
- Is enabled
- Test if the behavior is currently enabled. When disabled it will have no effect on the object.
Rotate actions
- Set acceleration
- Set speed
- Set rotation type
- Set the corresponding properties. See Rotate properties.
- Set enabled
- Enable or disable the movement. If disabled, the behavior will stop rotating the object.
Rotate expressions
- Acceleration
- Return the corresponding Acceleration property.
- Speed
- Return the current rotating speed, in degrees per second. A positive value indicates clockwise rotation and a negative value indicates anticlockwise rotation.
Construct 3 Manual
Construct.net
2017-08-21
2026-07-22
You are here:
Search this manual:
This manual entry was last updated on 22 Jul, 2026 at 09:27