Normalize

Use Normalize to normalize the input vector. That is, return a vector of the same direction as the input with a length of 1. Supported types: Vec2, Vec3, and Vec4. Normalize is in the Math category.
Input
Name | Data Type | Description |
---|---|---|
A | Vec4 | The vector to be normalized. |
Output
Name | Data Type | Description |
---|---|---|
Result | Vec4 | The normalized vector with a length of 1. |
Example

This example calculates and gets the normalized direction from the alien to the UFO, then transforms the alien to move towards the UFO‘s direction at a uniform speed.
