getCenterOfMass: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= Comments" to "|Comments=") |
Lou Montana (talk | contribs) m (Text replacement - "|= Game version" to "|Game version=") |
||
Line 3: | Line 3: | ||
| arma3 |= Game name | | arma3 |= Game name | ||
|1.12| | |1.12|Game version= | ||
|arg= global|Multiplayer Arguments= | |arg= global|Multiplayer Arguments= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ |
Revision as of 22:38, 31 August 2019
Description
- Description:
- Returns center of mass of an object.
- Groups:
- Uncategorised
Syntax
- Syntax:
- getCenterOfMass object
- Parameters:
- object: Object - PhysX object
- Return Value:
- Array - [x,y,z] offset relative to the model centre
Examples
- Example 1:
_com = getCenterOfMass _myCar;
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