addTorque

From Bohemia Interactive Community
Revision as of 03:17, 13 June 2021 by Lou Montana (talk | contribs) (Text replacement - " \{\{GameCategory *\| *arma3 *\| *(New )?Scripting Commands\}\}" to "")
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Description needed
Groups:
Object Manipulation

Syntax

Syntax:
object addTorque torque
Parameters:
object: Object - PhysX object
torque: Array - world vector in format [x,y,z]
Return Value:
Nothing

Examples

Example 1:
Apply torque [1000,0,0] to object not factoring object positioning: _wheel addTorque [1000,0,0];
Example 2:
Apply torque [1000,0,0] relative to object: _wheel addTorque (_wheel vectorModelToWorld [1000,0,0]);

Additional Information

See also:
addForcevectorModelToWorldvectorModelToWorldVisual

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