# Sandbox.PhysicsBody.Density

```csharp
float Density { get; set; }
```

Returns average of densities for all physics shapes of this body. This is based on [Sandbox.PhysicsShape.SurfaceMaterial](/api/Sandbox.PhysicsShape/SurfaceMaterial) of each shape.

Declared in [Sandbox.PhysicsBody](/api/Sandbox.PhysicsBody).
Assembly: `Sandbox.Engine`.
