getCenterOfMass: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|s([0-9])\= '''([^' ]+)'''([^ ]+) " to "|s$1= $2$3 ") |
Lou Montana (talk | contribs) m (Text replacement - " |r1=[[" to " |r1= [[") |
||
Line 13: | Line 13: | ||
|p1= object: [[Object]] - PhysX object | |p1= object: [[Object]] - PhysX object | ||
|r1=[[Array]] - [x,y,z] offset relative to the model centre | |r1= [[Array]] - [x,y,z] offset relative to the model centre | ||
|x1= <code>_com = [[getCenterOfMass]] _myCar;</code> | |x1= <code>_com = [[getCenterOfMass]] _myCar;</code> |
Revision as of 00:46, 8 August 2021
Description
- Description:
- Returns center of mass of an object.
- Groups:
- Object Manipulation
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