setAngularVelocity: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Add devbranch) |
Lou Montana (talk | contribs) (Add angular velocity limitation) |
||
Line 13: | Line 13: | ||
|descr= Sets the angular velocity of the object in world space as a 3D vector. The units are in Rad/s and rotations are clockwise. | |descr= Sets the angular velocity of the object in world space as a 3D vector. The units are in Rad/s and rotations are clockwise. | ||
{{Feature|important|Angular velocity is limited to a range of +-1000 Rad/s.}} | |||
|s1= obj [[setAngularVelocity]] vector | |s1= obj [[setAngularVelocity]] vector |
Revision as of 08:31, 5 December 2023
Description
- 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.
- Groups:
- Object Manipulation
Syntax
- Syntax:
- obj setAngularVelocity vector
- Parameters:
- obj: Object
- vector: Array in format Vector3D - angular velocity of the object in world space.
- Return Value:
- Nothing
Examples
- Example 1:
- myHeli setAngularVelocity [0,0,1]; // will cause the helicopter to spin around a vertical line passing through its center
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note