Quaternion
Cast > Quaternion to Euler
Converts a quaternion rotation to a Euler representation.
Inputs:
Quaternion
Quaternion
Quaternion rotation.
Outputs:
Euler Angles
Vector3
Euler angle rotation.
Cast > Quaternion to String
Converts a quaternion rotation to a string.
Inputs:
Quaternion
Quaternion
Quaternion rotation.
Outputs:
Output
String
String representation of the quaternion in the format (X, Y, Z, W)
.
Build Quaternion
Creates a quaternion data type.
Inputs:
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:
Quaternion Out
Quaternion
The constructed quaternion.
Get Quaternion
Converts a quaternion component to a quaternion data type.
Inputs:
Quaternion Component
Quaternion Component
Reference to a quaternion component.
Outputs:
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:
From
Vector3 [editable]
Starting direction in Euler angles.
To
Vector3 [editable]
Target direction in Euler angles.
Outputs:
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:
Quaternion A
Quaternion
First rotation.
Quaternion B
Quaternion
Second rotation.
Outputs:
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:
Angle
Float [editable]
The angle to rotate by.
Axis
Vector3 [editable]
The axis to rotate around.
Outputs:
Quaternion
Quaternion
Quaternion rotation that represents a rotation around Axis
by Angle
degree.
Quaternion Dot
The dot product between two rotations.
Inputs:
A
Quaternion
First rotation.
B
Quaternion
Second rotation.
Outputs:
Output
Float
The dot product between A and B.
Quaternion Euler
Converts a Euler angle rotation to a quaternion.
Inputs:
Euler
Vector3 [editable]
Euler angle rotation.
Outputs:
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:
From
Vector3 [editable]
Starting direction in Euler angles.
To
Vector3 [editable]
Target direction in Euler angles.
Outputs:
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:
Quaternion In
Quaternion
Quaternion with any magnitude.
Outputs:
Quaternion Out
Quaternion
Quaternion with a magnitude of 1.0.
Quaternion Inverse
Outputs the inverse of a rotation.
Inputs:
Quaternion
Quaternion
Starting rotation.
Outputs:
Output
Quaternion
Inverse of the Quaternion
input.
Quaternion Lerp
Interpolates between A and B by T and normalizes the result afterwards.
Inputs:
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:
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:
A
Quaternion
Starting quaternion. Output when T=0.
B
Quaternion
Ending quaternion. Output when T=1.
T
Float [editable]
Interpolation value.
Outputs:
Output
Quaternion
Interpolated quaternion.
Quaternion Look Rotation
Creates a rotation with the specified Forward
and Upward
directions.
Inputs:
Forward
Vector3 [editable]
Vector that represents the forward direction.
Upward
Vector3 [editable]
Vector that represents the upward direction.
Outputs:
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:
Quaternion
Quaternion
Quaternion with any magnitude.
Outputs:
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:
From
Quaternion
The initial rotation.
To
Quaternion
The target rotation.
Max Delta
Float [editable]
The maximum number of degrees to rotate by.
Outputs:
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:
View
Vector3 [editable]
Vector that represents the forward direction.
Up
Vector3 [editable]
Vector that represents the upward direction.
Outputs:
Quaternion
Quaternion
Quaternion rotation with the specified View
and Up
directions.
Quaternion Slerp
Spherically linear interpolates between quaternions A
and B
.
Inputs:
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:
Quaternion
Quaternion
Interpolated quaternion.
Quaternion Slerp Unclamped
Spherically linear interpolates between quaternions A
and B
. The parameter T is not clamped.
Inputs:
A
Quaternion
Starting quaternion. Output when T=0.
B
Quaternion
Ending quaternion. Output when T=1.
T
Float [editable]
Interpolation value.
Outputs:
Output
Quaternion
Interpolated quaternion.
Quaternion To Angle Axis
Converts a rotation to an angle-axis representation.
Inputs:
Quaternion
Quaternion
Quaternion rotation.
Outputs:
Angle
Float
Angle of rotation.
Axis
Vector3
Axis to rotate around.
Set Quaternion
Set the value of a quaternion component.
Inputs:
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:
Exit
Flow
Continue the activating flow.
Quaternion Out
Quaternion
Same as Value In
.
Split Quaternion
Splits a quaternion into its component parts.
Inputs:
Quaternion In
Quaternion
The quaternion to split.
Outputs:
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