# Sandbox.Volumes.VolumeComponent.GetEdgeDistance

```csharp
float GetEdgeDistance(Vector3 worldPosition)
```

Calculates the shortest distance from the specified world position to the nearest edge of the scene volume.

### Parameters

- `worldPosition` (`Vector3`)

### Returns

`float`

Declared in [Sandbox.Volumes.VolumeComponent](/api/Sandbox.Volumes.VolumeComponent).
Assembly: `Sandbox.Engine`.
