Arma 3 Scripting

getCenterOfMass

  • Global argument
  • Arma 3 v1.12

Command · Markdown · JSON · 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