setAngularVelocity: Difference between revisions

From Bohemia Interactive Community
(Created page with "{{RV|type=command |game1= arma3 |version1= 2.16 |arg= local |eff= global |gr1= Object Manipulation |descr= Sets the angular velocity of the object in world space as a 3D...")
 
mNo edit summary
 
(5 intermediate revisions by 3 users not shown)
Line 2: Line 2:


|game1= arma3
|game1= arma3
|version1= 2.16
|version1= 2.18


|arg= local
|arg= local
Line 11: Line 11:


|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


|p1= obj: [[Object]]  
|p1= obj: [[Object]]  
|p2= vector: [[Array]] in format [[Vector3D]] - angular velocity of the object in world space.
 
|p2= vector: [[Vector3D]] - angular velocity of the object in world space.
 
|r1= [[Nothing]]
|r1= [[Nothing]]



Latest revision as of 07:46, 2 January 2026

Hover & click on the images for description

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.
Angular velocity is limited to a range of +-1000 Rad/s.
Groups:
Object Manipulation

Syntax

Syntax:
obj setAngularVelocity vector
Parameters:
obj: Object
vector: 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

See also:
setVelocity setAngularVelocityModelSpace angularVelocity

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note