---
name: "getCenterOfMass"
type: command
status: ok
groups: ["PhysX"]
arma3_since: "1.12"
locality: {"argument": "global", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/getCenterOfMass
revid: 377796
updated: 2026-01-03T03:53:42Z
---

# getCenterOfMass

*Command · PhysX · Arma 3 v1.12*

Locality: arguments **global**

## Description

Returns center of mass of an object.

## Syntax

```sqf
getCenterOfMass object
```

**Parameters:**

- `object`: [Object](../topics/Object.md) - PhysX object

**Returns:** [PositionRelative](../topics/Position.md#positionrelative) - relative to the model centre

## Examples

### Example 1

```sqf
_com = getCenterOfMass _myCar;
```

## See also

[getMass](../commands/getMass.md) · [setCenterOfMass](../commands/setCenterOfMass.md) · [setMass](../commands/setMass.md) · [addTorque](../commands/addTorque.md) · [addForce](../commands/addForce.md)

<sub>Source: [BI Community Wiki — getCenterOfMass](https://community.bistudio.com/wiki/getCenterOfMass) (revision 377796).</sub>
