# PhysicsBody.MassOverride

> Selects which of the mass, rotational inertia and center of mass are overridden with authored values instead of being computed from the attached shapes.

## Definition

* **Type:** Enum
* **Namespace:** [Unity.U2D.Physics](/engine/6000.7/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

```csharp
[Flags]
public enum PhysicsBody.MassOverride
```

## Fields

| Value                                                                                                                | Description                                                                                                                                                    |
| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [All](/engine/6000.7/script-reference/unity/u2d/physics/physicsbody/massoverride/all.md)                             | Override the mass, rotational inertia and center of mass.                                                                                                      |
| [CenterOfMass](/engine/6000.7/script-reference/unity/u2d/physics/physicsbody/massoverride/centerofmass.md)           | Override the center of mass. A rotational inertia that is not itself overridden is shifted to the overridden center.                                           |
| [Mass](/engine/6000.7/script-reference/unity/u2d/physics/physicsbody/massoverride/mass.md)                           | Override the mass. A rotational inertia that is not itself overridden is scaled to the overridden mass, as if the same shapes had a different uniform density. |
| [None](/engine/6000.7/script-reference/unity/u2d/physics/physicsbody/massoverride/none.md)                           | Nothing is overridden; the whole mass configuration is computed from the attached shapes.                                                                      |
| [RotationalInertia](/engine/6000.7/script-reference/unity/u2d/physics/physicsbody/massoverride/rotationalinertia.md) | Override the rotational inertia.                                                                                                                               |
