addTorque: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " +" to " ") |
Lou Montana (talk | contribs) m (Text replacement - " \| ?\[\[([a-zA-Z0-9]+)\]\] *\|x1=" to " |r1= $1 |x1=") |
||
Line 18: | Line 18: | ||
|p5= | |p5= | ||
|p6= | |p6= | ||
| [[Nothing]] | |r1= [[Nothing]] | ||
|x1= Apply torque [1000,0,0] to object not factoring object positioning: | |x1= Apply torque [1000,0,0] to object not factoring object positioning: | ||
<code>_wheel [[addTorque]] [1000,0,0];</code> | <code>_wheel [[addTorque]] [1000,0,0];</code> |
Revision as of 10:28, 11 June 2021
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:
- 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
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