---
name: "getMass"
type: command
status: ok
groups: ["PhysX"]
arma3_since: "1.12"
locality: {"argument": "global", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/getMass
revid: 379346
updated: 2026-10-30T23:54:18Z
---

# getMass

*Command · PhysX · Arma 3 v1.12*

Locality: arguments **global**

## Description

Returns mass of a PhysX object.

## Syntax

```sqf
getMass object
```

**Parameters:**

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

**Returns:** [Number](../topics/Number.md)

## Examples

### Example 1

```sqf
_mass = getMass _myCar;
```

## See also

[getCenterOfMass](../commands/getCenterOfMass.md) · [setCenterOfMass](../commands/setCenterOfMass.md) · [setMass](../commands/setMass.md) · [load](../commands/load.md) · [weightRTD](../commands/weightRTD.md) · [getModelInfo](../commands/getModelInfo.md)

## Community notes

**Pierre MGI** — 2015-04-15

This function will return 0 for infantry AI units. That means a manned Blufor Hunter has the same mass than an empty one (8306.63).
Crates return their initial mass, but if you empty them or load items, magazines and weapons, the mass remains the same. In fact, none of these (non-physx) objects has a mass.

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