Docs

Vec2 Normalize

Unit-length version of a 2D vector. A zero-length input safely returns (0, 0) rather than an error.

Vec2 Normalize node

The Vec2 Normalize node

When to use it

Unit-length version of a 2D vector. A zero-length input safely returns (0, 0) rather than an error.

That guard is why a direction built from a difference can come out as zero instead of blowing up. When a direction-driven pattern goes blank at one spot, this is usually where it happened.

Pins

Pin Type Description
X Number X component of the input vector.
Y Number Y component of the input vector.
Pin Type Description
NX Number Normalised X component.
NY Number Normalised Y component.