# Sandbox.Volumes.SceneVolume.GetEdgeDistance

```csharp
float GetEdgeDistance(in Transform worldTransform, in Vector3 worldPosition)
```

Calculates the shortest distance from the specified world position to the edge of this volume.

### Parameters

- `in worldTransform` (`Transform`): The world transform of the volume.
- `in worldPosition` (`Vector3`): The position in world space to measure from.

### Returns

`float`: The distance, in world units, from the position to the volume edge.

Declared in [Sandbox.Volumes.SceneVolume](/api/Sandbox.Volumes.SceneVolume).
Assembly: `Sandbox.Engine`.
