# Sandbox.Navigation.NavMesh.GetClosestPoint

## Overload 1

```csharp
System.Nullable<Vector3> GetClosestPoint(BBox box)
```

### Parameters

- `box` (`BBox`)

### Returns

`System.Nullable<Vector3>`

## Overload 2

```csharp
System.Nullable<Vector3> GetClosestPoint(Vector3 position, float radius = 1024)
```

### Parameters

- `position` (`Vector3`)
- `radius` (`float`), default `1024`

### Returns

`System.Nullable<Vector3>`

Declared in [Sandbox.Navigation.NavMesh](/api/Sandbox.Navigation.NavMesh).
Assembly: `Sandbox.Engine`.
