# massOverride

> Selects which of the mass, rotational inertia and center of mass are overridden with the authored values instead of being computed from the attached shapes. Anything without a matching bit is computed from the attached shapes as normal. Only applies to a Dynamic body. See PhysicsBody.massOverride.

## Definition

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

```csharp
public PhysicsBody.MassOverride massOverride { readonly get; set; }
```
