Arma 3 Scripting

Command in Object Manipulation

setAngularVelocity

Also available as Markdown and JSON, or read the original wiki page.

Description

Sets the angular velocity of the object in world space as a 3D vector. The units are in Rad/s and rotations are clockwise.

Important

Angular velocity is limited to a range of +-1000 Rad/s.

Syntax

obj setAngularVelocity vector

Parameters:

Returns: Nothing

Examples

Example 1

myHeli setAngularVelocity [0,0,1]; // will cause the helicopter to spin around a vertical line passing through its center

See also

setVelocity · setAngularVelocityModelSpace · angularVelocity