# Sandbox.PhysicsBody.FindClosestPoint

```csharp
Vector3 FindClosestPoint(Vector3 vec)
```

Returns the closest point to the given one between all shapes of this body.

### Parameters

- `vec` (`Vector3`): Input position.

### Returns

`Vector3`: The closest possible position on the surface of the physics body to the given position.

Declared in [Sandbox.PhysicsBody](/api/Sandbox.PhysicsBody).
Assembly: `Sandbox.Engine`.
