> For the complete documentation index, see [llms.txt](https://renownedgames.gitbook.io/ai-tree/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://renownedgames.gitbook.io/ai-tree/nodes/tasks/vector2/clamp-magnitude.md).

# Clamp Magnitude

### Description

Vector with its magnitude clamped to maxLength.

**To create it**, right-click in the editor and select <mark style="color:purple;">Create Node/Tasks/Vector2/Clamp Magnitude</mark>

This task node has a number of fields, that are highlighted in picture below.

<figure><img src="/files/OKtSCaMvOxW6XtvEx7TL" alt=""><figcaption></figcaption></figure>

### Fields

| Name              | Description                             |
| ----------------- | --------------------------------------- |
| Node Name         | Name of node.                           |
| Ignore About Self | Whether node ignores abort self or not. |
| Vector 2          | Key of vector.                          |
| Max Length        | Key of float with max length.           |
