getCenterOfMass

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 3 version 1.12
  Arguments of this scripting command don't have to be local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.12

Description

Description:
Returns center of mass of an object.

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

Multiplayer:
-
See also:
getMasssetCenterOfMasssetMassaddTorqueaddForce

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section