addTorque: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{( *)Important( *)\|" to "{{$1Feature$2|$2important$2|")
m (Text replacement - "\| *((\[\[.*\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
Line 23: Line 23:
|x2= Apply torque [1000,0,0] relative to object:
|x2= Apply torque [1000,0,0] relative to object:
<code>_wheel [[addTorque]] (_wheel [[vectorModelToWorld]] [1000,0,0]);</code>
<code>_wheel [[addTorque]] (_wheel [[vectorModelToWorld]] [1000,0,0]);</code>
|[[addForce]], [[vectorModelToWorld]], [[vectorModelToWorldVisual]]
|seealso= [[addForce]], [[vectorModelToWorld]], [[vectorModelToWorldVisual]]
}}
}}



Revision as of 23:22, 16 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Object Manipulation

Syntax

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

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