getCenterOfMass: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma3 |= Game name |1.12|= Game version ____________________...") |
(see also, example) |
||
Line 14: | Line 14: | ||
|p1= object: [[Object]] |= PARAMETER1 | |p1= object: [[Object]] |= PARAMETER1 | ||
| [[Array]] |= RETURNVALUE | | [[Array]] - [x,y,z] offset relative to the model centre |= RETURNVALUE | ||
|x1= <code></code>|= EXAMPLE1 | |x1= <code>_com = getCenterOfMass _myCar</code>|= EXAMPLE1 | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [[getMass]], [[setCenterOfMass]], [[setMass]] |= SEEALSO | ||
| |= MPBEHAVIOUR | | |= MPBEHAVIOUR |
Revision as of 22:08, 5 February 2014
Description
- Description:
- Returns center of mass of a PhysX object.
- Groups:
- Uncategorised
Syntax
- Syntax:
- getCenterOfMass object
- Parameters:
- object: Object
- Return Value:
- Array - [x,y,z] offset relative to the model centre
Examples
- Example 1:
_com = getCenterOfMass _myCar
Additional Information
- See also:
- getMasssetCenterOfMasssetMass
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