# Sandbox.DebugOverlaySystem.Trace

```csharp
void Trace(SceneTraceResult trace, float duration = 0, bool overlay = False)
```

Draws the result of a physics trace, showing the start and end points, the hit location and normal (if any),
and the traced shape (ray, sphere, box, capsule, cylinder) at both the start and end positions.

### Parameters

- `trace` (`SceneTraceResult`)
- `duration` (`float`), default `0`
- `overlay` (`bool`), default `False`

Declared in [Sandbox.DebugOverlaySystem](/api/Sandbox.DebugOverlaySystem).
Assembly: `Sandbox.Engine`.
