Arma 3 Scripting

Command in PhysX

getCenterOfMass

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns center of mass of an object.

Syntax

getCenterOfMass object

Parameters:

Returns: PositionRelative - relative to the model centre

Examples

Example 1

_com = getCenterOfMass _myCar;

See also

getMass · setCenterOfMass · setMass · addTorque · addForce