Documentation / Node reference / code nodes
code/MaxLength
Outputs the vector, shortened to at most maxLength.
Math
Outputs the vector, shortened to maxLength when it is longer. Its direction is kept.
Parameters
| Name | Type | What it does |
|---|---|---|
| value_Vector2 | Vector2 | Vector to shorten. |
| value_Vector3 | Vector3 | Vector to shorten. |
| maxLength | Float | Longest length the output can have. |
This page is generated from the engine, so it describes the release you can download. The same text is in the editor's Help panel next to the node itself.