Docs

Vec2 Dot

Dot product of two 2D vectors. Positive when they point the same way, zero when perpendicular, negative when opposed.

Vec2 Dot node

The Vec2 Dot node

When to use it

Dot product of two 2D vectors. Positive when they point the same way, zero when perpendicular, negative when opposed.

Normalise both inputs first if you want to read the result as a cosine. Unnormalised inputs scale it by their lengths, and the comparison you thought you were making stops meaning what you thought.

Pins

Pin Type Description
AX Number A X component.
AY Number A Y component.
BX Number B X component.
BY Number B Y component.
Pin Type Description
Result Number How much A and B point the same way.