getCenterOfMass: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (format) |
m (template:command argument fix) |
||
Line 12: | Line 12: | ||
| '''getCenterOfMass''' object |= Syntax | | '''getCenterOfMass''' object |= Syntax | ||
|p1= object: [[Object]] - PhysX object |= | |p1= object: [[Object]] - PhysX object |PARAMETER1= | ||
| [[Array]] - [x,y,z] offset relative to the model centre |= | | [[Array]] - [x,y,z] offset relative to the model centre |RETURNVALUE= | ||
|x1= <code>_com = [[getCenterOfMass]] _myCar;</code>|= | |x1= <code>_com = [[getCenterOfMass]] _myCar;</code>|EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[getMass]], [[setCenterOfMass]], [[setMass]], [[addTorque]], [[addForce]] |= | | [[getMass]], [[setCenterOfMass]], [[setMass]], [[addTorque]], [[addForce]] |SEEALSO= | ||
| |= | | |MPBEHAVIOUR= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
}} | }} |
Revision as of 11:31, 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