# Vector3.AddClamped

```csharp
Vector3 AddClamped(in Vector3 toAdd, float maxLength)
```

Try to add to this vector. If we're already over max then don't add.
If we're over max when we add, clamp in that direction so we're not.

### Parameters

- `in toAdd` (`Vector3`)
- `maxLength` (`float`)

### Returns

`Vector3`

Declared in [Vector3](/api/Vector3).
Assembly: `Sandbox.System`.
