# CalculateMassConfiguration(float)

> Calculate the mass configuration of the geometry.

## Definition

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

```csharp
public readonly PhysicsBody.MassConfiguration CalculateMassConfiguration(float density = 1)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The density to use.

### Returns

| Type                                                                                                    | Description                        |
| ------------------------------------------------------------------------------------------------------- | ---------------------------------- |
| [MassConfiguration](/engine/6000.6/script-reference/unity/u2d/physics/physicsbody/massconfiguration.md) | The calculated mass configuration. |
