addTorque: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <dl class='command_description'> <!-- BEGIN Note Section --> <!-- For example: <dd class='notedate'>Posted on Month Day, Year - Time (UTC)</dd> <dt class='note'>'''User Name'''</dt> <dd class='note'>This is an ex...) |
Lou Montana (talk | contribs) m (Text replacement - " " to " ") |
||
Line 25: | Line 25: | ||
|[[addForce]], [[vectorModelToWorld]], [[vectorModelToWorldVisual]] | |[[addForce]], [[vectorModelToWorld]], [[vectorModelToWorldVisual]] | ||
}} | }} | ||
{{GameCategory|arma3|Scripting Commands}} | {{GameCategory|arma3|Scripting Commands}} | ||
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] |
Revision as of 20:35, 31 January 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:
- 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:
- See also needed
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