Vector2 nodes
Expression
Returns the absolute value of each component in a Vector2.
Also searchable as: “Absolute Value”, “Vector2 Abs”.
Inputs
| Name | Type | Description | Default |
|---|---|---|---|
| Vector2 | Vector2 |
Outputs
| Name | Type | Description | Default |
|---|---|---|---|
| Result | Vector2 |
Expression
Adds two Vector2s together component-wise.
Also searchable as: “Add Vectors”, “Vector2 Addition”.
Inputs
| Name | Type | Description | Default |
|---|---|---|---|
| Vector2 A | Vector2 |
||
| Vector2 B | Vector2 |
Outputs
| Name | Type | Description | Default |
|---|---|---|---|
| Result | Vector2 |
Break Vector2
Section titled “Break Vector2”Expression
Decomposes a Vector2 into its X and Y components.
Also searchable as: “Decompose Vector2”, “Split Vector2”.
Inputs
| Name | Type | Description | Default |
|---|---|---|---|
| Vector2 | Vector2 |
Outputs
| Name | Type | Description | Default |
|---|---|---|---|
| X | number |
||
| Y | number |
Expression
Clamps a Vector2 between minimum and maximum values component-wise.
Also searchable as: “Constrain Vector2”.
Inputs
| Name | Type | Description | Default |
|---|---|---|---|
| Vector2 | Vector2 |
||
| Min | Vector2 |
||
| Max | Vector2 |
Outputs
| Name | Type | Description | Default |
|---|---|---|---|
| Result | Vector2 |
Cross Product
Section titled “Cross Product”Expression
Computes the cross product of two Vector2s.
Also searchable as: “Vector2 Cross Product”.
Inputs
| Name | Type | Description | Default |
|---|---|---|---|
| Vector2 A | Vector2 |
||
| Vector2 B | Vector2 |
Outputs
| Name | Type | Description | Default |
|---|---|---|---|
| Result | Vector2 |
Distance
Section titled “Distance”Expression
Calculates the distance between two Vector2 points.
Also searchable as: “Vector2 Distance Between”.
Inputs
| Name | Type | Description | Default |
|---|---|---|---|
| Vector2 A | Vector2 |
||
| Vector2 B | Vector2 |
Outputs
| Name | Type | Description | Default |
|---|---|---|---|
| Result | number |
Dot Product
Section titled “Dot Product”Expression
Computes the dot product (scalar) of two Vector2s.
Also searchable as: “Vector2 Dot Product”.
Inputs
| Name | Type | Description | Default |
|---|---|---|---|
| Vector2 A | Vector2 |
||
| Vector2 B | Vector2 |
Outputs
| Name | Type | Description | Default |
|---|---|---|---|
| Result | number |
Length
Section titled “Length”Expression
Calculates the length (magnitude) of a Vector2.
Also searchable as: “Magnitude”, “Vector2 Length”.
Inputs
| Name | Type | Description | Default |
|---|---|---|---|
| Vector2 | Vector2 |
Outputs
| Name | Type | Description | Default |
|---|---|---|---|
| Result | number |
Expression
Linearly interpolates between two Vector2s based on a factor (0-1).
Also searchable as: “Linear Interpolate Vector2”.
Inputs
| Name | Type | Description | Default |
|---|---|---|---|
| Vector2 A | Vector2 |
||
| Vector2 B | Vector2 |
||
| Factor | number |
Outputs
| Name | Type | Description | Default |
|---|---|---|---|
| Result | Vector2 |
Make Vector2
Section titled “Make Vector2”Expression
Creates a new Vector2 object with the specified X and Y components.
Also searchable as: “New Vector2”, “Create Vector2”.
Inputs
| Name | Type | Description | Default |
|---|---|---|---|
| X | number |
||
| Y | number |
Outputs
| Name | Type | Description | Default |
|---|---|---|---|
| Result | Vector2 |
Expression
Returns a Vector2 with the maximum component values from two vectors.
Also searchable as: “Maximum Vector2”.
Inputs
| Name | Type | Description | Default |
|---|---|---|---|
| Vector2 A | Vector2 |
||
| Vector2 B | Vector2 |
Outputs
| Name | Type | Description | Default |
|---|---|---|---|
| Result | Vector2 |
Expression
Returns a Vector2 with the minimum component values from two vectors.
Also searchable as: “Minimum Vector2”.
Inputs
| Name | Type | Description | Default |
|---|---|---|---|
| Vector2 A | Vector2 |
||
| Vector2 B | Vector2 |
Outputs
| Name | Type | Description | Default |
|---|---|---|---|
| Result | Vector2 |
Multiply by Number
Section titled “Multiply by Number”Expression
Multiplies a Vector2 by a scalar value.
Also searchable as: “Scale Vector2”.
Inputs
| Name | Type | Description | Default |
|---|---|---|---|
| Vector2 | Vector2 |
||
| Multiplier | number |
Outputs
| Name | Type | Description | Default |
|---|---|---|---|
| Result | Vector2 |
Normalize
Section titled “Normalize”Expression
Returns a normalized (unit length) version of a Vector2.
Also searchable as: “Normalized Vector2”.
Inputs
| Name | Type | Description | Default |
|---|---|---|---|
| Vector2 | Vector2 |
Outputs
| Name | Type | Description | Default |
|---|---|---|---|
| Result | Vector2 |
Subtract
Section titled “Subtract”Expression
Subtracts one Vector2 from another component-wise.
Also searchable as: “Subtract Vectors”, “Vector2 Subtraction”.
Inputs
| Name | Type | Description | Default |
|---|---|---|---|
| Vector2 A | Vector2 |
||
| Vector2 B | Vector2 |
Outputs
| Name | Type | Description | Default |
|---|---|---|---|
| Result | Vector2 |
To Array
Section titled “To Array”Expression
Converts a Vector2 into an array of its components.
Inputs
| Name | Type | Description | Default |
|---|---|---|---|
| Vector2 | Vector2 |
Outputs
| Name | Type | Description | Default |
|---|---|---|---|
| Result | number[] |

