Rotate behavior script interface

The IRotateBehaviorInstance interface derives from IBehaviorInstance to add APIs specific to the Rotate behavior.

Rotate behavior APIs

speed
Set or get the rotation speed in radians per second. Positive values rotate clockwise and negative values rotate counter-clockwise.
acceleration
Set or get the rotation acceleration rate in radians per second per second.
rotationType
Set or get the current rotation type. This is a string which may be one of "2d" for 2D rotation (altering the angle), or "rotation-x", "rotation-y" or "rotation-z" for 3D rotation around a particular axis.
isEnabled
A boolean indicating if the behavior is enabled. If disabled, the behavior no longer has any effect on the object.
Construct Animate Manual 2026-07-22

On this page