Nodes in this category perform operations involving vec2 values (points or arrows in 2D space) such as the dot product, normalization, and distance calculations.
Nodes
| Node | Details | Possible Types |
|---|---|---|
| Angle Between | Calculates the angle swept between two vectors. The value is always positive and ranges from 0° (both vectors point the same direction) to 180° (both vectors point opposite directions). | vec2 → f64 |
| Angle To | Calculates the angle needed for a rightward-facing object placed at the observer position to turn so it points toward the target position. | vec2 → f64transform → f64 |
| Dot Product | The dot product operation ( Calculated as The output ranges from the positive to negative product of their lengths based on when they are pointing in the same or opposite directions. If any vector has zero length, the output is 0. | vec2 → f64 |
| Extract XY | Obtains the X or Y component of a vec2. The inverse of this node is "Vec2 Value", which can have either or both its X and Y parameters exposed as graph inputs. | vec2 → f64IVec2 → f64UVec2 → f64 |
| Length | The magnitude operator ( | vec2 → f64 |
| Normalize | Scales the input vector to unit length while preserving its direction. This is equivalent to dividing the input vector by its own magnitude. Returns 0 when the input vector has zero length. | vec2 → vec2 |