# CalculateMassConfiguration(float)

> Calculate the mass configuration of the geometry.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.LowLevelPhysics2D](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d.md)
* **Assembly:** UnityEngine.Physics2DModule

```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.3/script-reference/unityengine/lowlevelphysics2d/physicsbody/massconfiguration.md) | The calculated mass configuration. |
