getCenterOfMass: Difference between revisions
Jump to navigation
Jump to search
m (template:command argument fix) |
m (template:command argument fix) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Returns center of mass of an object. |= | | Returns center of mass of an object. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| '''getCenterOfMass''' object |= | | '''getCenterOfMass''' object |SYNTAX= | ||
|p1= object: [[Object]] - PhysX object |PARAMETER1= | |p1= object: [[Object]] - PhysX object |PARAMETER1= |
Revision as of 15:39, 7 April 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