Vector Nodes
Direction to Euler
Converts a direction vector to Euler angles (degrees, XYZ) for Transform rotation. Set Aim Axis to match your geometry’s forward axis.
Inputs
- Forward (Vector3)
- Up (Vector3)
Outputs
- Euler (Vector3)
Options
- aimAxis: Which local axis of your geometry points forward. Z: Unity default (+Z forward). X: beams, rails, planks built along +X. Y: geometry built facing up the +Y axis.
Tips
- If your geometry came out a quarter-turn off, it is probably built along +X; set Aim Axis to X.
Make Vector2
Combines two scalar values into a Vector2. Connect to any Vector2 input port.
Inputs
- X (Float)
- Y (Float)
Outputs
- Vector (Vector2)
Make Vector3
Combines three scalar values into a Vector3. Connect to any Vector3 input port.
Inputs
- X (Float)
- Y (Float)
- Z (Float)
Outputs
- Vector (Vector3)
Make Vector4
Combines four scalar values into a Vector4. Connect to any Vector4 input port.
Inputs
- X (Float)
- Y (Float)
- Z (Float)
- W (Float)
Outputs
- Vector (Vector4)
Split Vector2
Splits a Vector2 into its X, Y scalar components.
Inputs
- Vector (Vector2)
Outputs
- X (Float)
- Y (Float)
Split Vector3
Splits a Vector3 into its X, Y, Z scalar components.
Inputs
- Vector (Vector3)
Outputs
- X (Float)
- Y (Float)
- Z (Float)
Split Vector4
Splits a Vector4 into its X, Y, Z, W scalar components.
Inputs
- Vector (Vector4)
Outputs
- X (Float)
- Y (Float)
- Z (Float)
- W (Float)
Vector2 Distance
Returns the scalar distance between two Vector2 points.
Inputs
- A (Vector2)
- B (Vector2)
Outputs
- Distance (Float)
Vector2 Dot
Returns the dot product of two Vector2 values.
Inputs
- A (Vector2)
- B (Vector2)
Outputs
- Dot (Float)
Vector2 Length
Returns the length (magnitude) of a Vector2.
Inputs
- Vector (Vector2)
Outputs
- Length (Float)
Vector2 Normalize
Returns a unit-length Vector2 in the same direction. Returns zero if input is zero.
Inputs
- Vector (Vector2)
Outputs
- Normalized (Vector2)
Vector2 Rotate
Rotates a Vector2 counter-clockwise by the given angle in degrees.
Inputs
- Vector (Vector2)
- Angle (Float)
Outputs
- Rotated (Vector2)
Vector2 Sqr Length
Returns the squared length of a Vector2. Cheaper than Length when only comparing magnitudes.
Inputs
- Vector (Vector2)
Outputs
- Sqr Length (Float)
Vector2 to Vector3
Lifts a Vector2 back to Vector3 by inserting a scalar value on the free axis.
Inputs
- Vector (Vector2)
- Free Axis (Float)
Outputs
- Vector (Vector3)
Options
- plane: Which two axes the Vector2 maps to. XZ: ground plane, Free Axis fills Y (default). XY: front view, Free Axis fills Z. YZ: side view, Free Axis fills X.
Tips
- Connect a noise or parameter to the Free Axis port to add variation along the third dimension.
Vector3 Add
Adds two Vector3s component-wise.
Inputs
- A (Vector3)
- B (Vector3)
Outputs
- Sum (Vector3)
Vector3 Cross
Returns the cross product of two Vector3s: a vector perpendicular to both.
Inputs
- A (Vector3)
- B (Vector3)
Outputs
- Cross (Vector3)
Tips
- A × B is not the same as B × A; swapping flips the result’s direction. If your normals point inward, try swapping them.
Vector3 Distance
Returns the distance between two Vector3 points.
Inputs
- A (Vector3)
- B (Vector3)
Outputs
- Distance (Float)
Vector3 Divide
Divides Vector by Divide By component-wise. Returns 0 for any component where Divide By is zero.
Inputs
- Vector (Vector3)
- Divide By (Vector3)
Outputs
- Result (Vector3)
Vector3 Dot
Returns the dot product of two Vector3s. Equals 0 when perpendicular, 1 when parallel (unit vectors).
Inputs
- A (Vector3)
- B (Vector3)
Outputs
- Dot (Float)
Vector3 Length
Returns the length (magnitude) of a Vector3.
Inputs
- Vector (Vector3)
Outputs
- Length (Float)
Vector3 Lerp
Linearly interpolates between two Vector3s. Returns From when T=0, To when T=1.
Inputs
- From (Vector3)
- To (Vector3)
- T (Float)
Outputs
- Result (Vector3)
Vector3 Multiply
Multiplies two Vector3s component-wise (Hadamard product). Useful for masking or non-uniform scaling.
Inputs
- A (Vector3)
- B (Vector3)
Outputs
- Result (Vector3)
Vector3 Normalize
Returns a unit-length Vector3 in the same direction. Returns zero if the input is zero.
Inputs
- Vector (Vector3)
Outputs
- Normalized (Vector3)
Vector3 Project
Projects Vector onto the Onto axis. Returns the component of Vector in the Onto direction.
Inputs
- Vector (Vector3)
- Onto (Vector3)
Outputs
- Result (Vector3)
Vector3 Reflect
Reflects vector V across surface normal N. N should be normalised for correct results.
Inputs
- V (Vector3)
- N (Vector3)
Outputs
- Result (Vector3)
Vector3 Rotate
Rotates a Vector3 around an axis by an angle in radians using axis-angle rotation.
Inputs
- Vector (Vector3)
- Axis (Vector3)
- Angle (Float)
Outputs
- Result (Vector3)
Vector3 Scale
Scales a Vector3 by a scalar factor.
Inputs
- Vector (Vector3)
- Scale (Float)
Outputs
- Result (Vector3)
Vector3 Sqr Length
Returns the squared length of a Vector3. Cheaper than Length when only comparing magnitudes.
Inputs
- Vector (Vector3)
Outputs
- Sqr Length (Float)
Vector3 Subtract
Subtracts Subtract By from Vector component-wise. Useful for computing displacement vectors.
Inputs
- Vector (Vector3)
- Subtract By (Vector3)
Outputs
- Difference (Vector3)
Vector3 to Vector2
Projects a Vector3 down to Vector2 by extracting two axes, outputting the dropped axis as a separate scalar.
Inputs
- Vector (Vector3)
Outputs
- Vector (Vector2)
- Free Axis (Float)
Options
- plane: Which two axes to keep. XZ: ground plane, drops Y (default for layouts, polygons). XY: front-view plane, drops Z. YZ: side-view plane, drops X.
Tips
- If your layout came out standing up instead of lying on the ground, the Plane is set to XY.
Vector4 Distance
Returns the scalar distance between two Vector4 points.
Inputs
- A (Vector4)
- B (Vector4)
Outputs
- Distance (Float)
Vector4 Dot
Returns the dot product of two Vector4 values.
Inputs
- A (Vector4)
- B (Vector4)
Outputs
- Dot (Float)
Vector4 Length
Returns the length (magnitude) of a Vector4.
Inputs
- Vector (Vector4)
Outputs
- Length (Float)
Vector4 Normalize
Returns a unit-length Vector4 in the same direction. Returns zero if input is zero.
Inputs
- Vector (Vector4)
Outputs
- Normalized (Vector4)
Vector4 Sqr Length
Returns the squared length of a Vector4. Cheaper than Length when only comparing magnitudes.
Inputs
- Vector (Vector4)
Outputs
- Sqr Length (Float)