Quaternion

Cast > Quaternion to Euler

Converts a quaternion rotation to a Euler representation.

Inputs:

Name
Type
Description

Quaternion

Quaternion

Quaternion rotation.

Outputs:

Name
Type
Description

Euler Angles

Vector3

Euler angle rotation.

Cast > Quaternion to String

Converts a quaternion rotation to a string.

Inputs:

Name
Type
Description

Quaternion

Quaternion

Quaternion rotation.

Outputs:

Name
Type
Description

Output

String

String representation of the quaternion in the format (X, Y, Z, W).

Build Quaternion

Creates a quaternion data type.

Inputs:

Name
Type
Description

X In

Float [editable]

X component of the quaternion.

Y In

Float [editable]

Y component of the quaternion.

Z In

Float [editable]

Z component of the quaternion.

W In

Float [editable]

W component of the quaternion.

Outputs:

Name
Type
Description

Quaternion Out

Quaternion

The constructed quaternion.

Get Quaternion

Converts a quaternion component to a quaternion data type.

Inputs:

Name
Type
Description

Quaternion Component

Quaternion Component

Reference to a quaternion component.

Outputs:

Name
Type
Description

Quaternion Out

Quaternion

Quaternion rotation.

Quaternion Set From To Rotation

Creates a rotation which rotates between From and To. Inputs are in Euler angles. For example, from the transforms of two objects.

Inputs:

Name
Type
Description

From

Vector3 [editable]

Starting direction in Euler angles.

To

Vector3 [editable]

Target direction in Euler angles.

Outputs:

Name
Type
Description

Output

Quaternion

Quaternion rotation that describes the rotation required to change between From and To.

Quaternion Angle

Calculates the angle of the shortest rotation between two quaternion rotations.

Inputs:

Name
Type
Description

Quaternion A

Quaternion

First rotation.

Quaternion B

Quaternion

Second rotation.

Outputs:

Name
Type
Description

Angle

Float

The angle in degrees between Quaternion A and Quaternion B.

Quaternion Angle Axis

Creates a rotation which rotates a given number of degrees around a given axis.

Inputs:

Name
Type
Description

Angle

Float [editable]

The angle to rotate by.

Axis

Vector3 [editable]

The axis to rotate around.

Outputs:

Name
Type
Description

Quaternion

Quaternion

Quaternion rotation that represents a rotation around Axis by Angle degree.

Quaternion Dot

The dot product between two rotations.

Inputs:

Name
Type
Description

A

Quaternion

First rotation.

B

Quaternion

Second rotation.

Outputs:

Name
Type
Description

Output

Float

The dot product between A and B.

Quaternion Euler

Converts a Euler angle rotation to a quaternion.

Inputs:

Name
Type
Description

Euler

Vector3 [editable]

Euler angle rotation.

Outputs:

Name
Type
Description

Quaternion

Quaternion

Quaternion representation of the Euler input.

Quaternion From To Rotation

Creates a rotation which rotates between From and To. Inputs are in Euler angles. For example, from the transforms of two objects.

Inputs:

Name
Type
Description

From

Vector3 [editable]

Starting direction in Euler angles.

To

Vector3 [editable]

Target direction in Euler angles.

Outputs:

Name
Type
Description

Quaternion

Quaternion

Quaternion rotation that describes the rotation required to change between From and To.

Get Quaternion Normalized

Converts this quaternion to a quaternion with the same orientation but with a magnitude of 1.0.

Inputs:

Name
Type
Description

Quaternion In

Quaternion

Quaternion with any magnitude.

Outputs:

Name
Type
Description

Quaternion Out

Quaternion

Quaternion with a magnitude of 1.0.

Quaternion Inverse

Outputs the inverse of a rotation.

Inputs:

Name
Type
Description

Quaternion

Quaternion

Starting rotation.

Outputs:

Name
Type
Description

Output

Quaternion

Inverse of the Quaternion input.

Quaternion Lerp

Interpolates between A and B by T and normalizes the result afterwards.

Inputs:

Name
Type
Description

A

Quaternion

Starting quaternion. Output when T=0.

B

Quaternion

Ending quaternion. Output when T=1.

T

Float [editable]

Interpolation value. Clamped in the range 0 to 1.

Outputs:

Name
Type
Description

Output

Quaternion

Interpolated quaternion.

Quaternion Lerp Unclamped

Interpolates between A and B by T and normalizes the result afterwards. The parameter T is not clamped.

Inputs:

Name
Type
Description

A

Quaternion

Starting quaternion. Output when T=0.

B

Quaternion

Ending quaternion. Output when T=1.

T

Float [editable]

Interpolation value.

Outputs:

Name
Type
Description

Output

Quaternion

Interpolated quaternion.

Quaternion Look Rotation

Creates a rotation with the specified Forward and Upward directions.

Inputs:

Name
Type
Description

Forward

Vector3 [editable]

Vector that represents the forward direction.

Upward

Vector3 [editable]

Vector that represents the upward direction.

Outputs:

Name
Type
Description

Quaternion

Quaternion

Quaternion rotation with the specified Forward and Upward directions.

Quaternion Normalized

Converts this quaternion to a quaternion with the same orientation but with a magnitude of 1.0.

Inputs:

Name
Type
Description

Quaternion

Quaternion

Quaternion with any magnitude.

Outputs:

Name
Type
Description

Output

Quaternion

Quaternion with a magnitude of 1.0.

Quaternion Rotate Towards

Rotates an initial rotation towards a target by a specified number of degrees.

Inputs:

Name
Type
Description

From

Quaternion

The initial rotation.

To

Quaternion

The target rotation.

Max Delta

Float [editable]

The maximum number of degrees to rotate by.

Outputs:

Name
Type
Description

Output

Quaternion

A rotated version of the From input rotated towards the To input by a maximum of Max Delta degrees.

Quaternion Set Look Rotation

Creates a rotation with the specified Forward and Upward directions.

Inputs:

Name
Type
Description

View

Vector3 [editable]

Vector that represents the forward direction.

Up

Vector3 [editable]

Vector that represents the upward direction.

Outputs:

Name
Type
Description

Quaternion

Quaternion

Quaternion rotation with the specified View and Up directions.

Quaternion Slerp

Spherically linear interpolates between quaternions A and B.

Inputs:

Name
Type
Description

A

Quaternion

Starting quaternion. Output when T=0.

B

Quaternion

Ending quaternion. Output when T=1.

T

Float [editable]

Interpolation value. Clamped in the range 0 to 1.

Outputs:

Name
Type
Description

Quaternion

Quaternion

Interpolated quaternion.

Quaternion Slerp Unclamped

Spherically linear interpolates between quaternions A and B. The parameter T is not clamped.

Inputs:

Name
Type
Description

A

Quaternion

Starting quaternion. Output when T=0.

B

Quaternion

Ending quaternion. Output when T=1.

T

Float [editable]

Interpolation value.

Outputs:

Name
Type
Description

Output

Quaternion

Interpolated quaternion.

Quaternion To Angle Axis

Converts a rotation to an angle-axis representation.

Inputs:

Name
Type
Description

Quaternion

Quaternion

Quaternion rotation.

Outputs:

Name
Type
Description

Angle

Float

Angle of rotation.

Axis

Vector3

Axis to rotate around.

Set Quaternion

Set the value of a quaternion component.

Inputs:

Name
Type
Description

Enter

Flow

Flow to activate the node.

Quaternion Component

Quaternion Component

Reference to the quaternion component for which to set the value.

Value In

Quaternion

Value to assign to the quaternion component.

Outputs:

Name
Type
Description

Exit

Flow

Continue the activating flow.

Quaternion Out

Quaternion

Same as Value In.

Split Quaternion

Splits a quaternion into its component parts.

Inputs:

Name
Type
Description

Quaternion In

Quaternion

The quaternion to split.

Outputs:

Name
Type
Description

X

Float

X component of the quaternion.

W

Float

Y component of the quaternion.

Z

Float

Z component of the quaternion.

W

Float

W component of the quaternion.

after

Last updated