Go to: Related nodes. Attributes.

Compute the rotation angles (eulerX, eulerY, eulerZ) or an axis (axisX, axisY, axisZ) and an angle (angle) that will rotate (normalized) vector1 into vector2.

Node name Parents Classification MFn type Compatible function sets
angleBetween dependNode utility/general kAngleBetween kBase
kNamedObject
kDependencyNode
kAngleBetween

Related nodes

addDoubleLinear, addMatrix, multMatrix, fourByFourMatrix, wtAddMatrix, multDoubleLinear, pointMatrixMult

Attributes (18)

angle, axis, axisAngle, axisX, axisY, axisZ, euler, eulerX, eulerY, eulerZ, vector1, vector1X, vector1Y, vector1Z, vector2, vector2X, vector2Y, vector2Z

Long name (short name) Type Default Flags
vector1 (v1) double3 outputinputconnectablestorable
First input vector (from)
vector1X (v1x) distance (double) 0.0cm outputinputconnectablestorable
X of first input vector
vector1Y (v1y) distance (double) 1.0cm outputinputconnectablestorable
Y of first input vector
vector1Z (v1z) distance (double) 0.0cm outputinputconnectablestorable
Z of first input vector
vector2 (v2) double3 outputinputconnectablestorable
Second input vector (to)
vector2X (v2x) distance (double) 0.0cm outputinputconnectablestorable
X of second input vector
vector2Y (v2y) distance (double) 0.0cm outputinputconnectablestorable
Y of second input vector
vector2Z (v2z) distance (double) 1.0cm outputinputconnectablestorable
Z of second input vector
euler (eu) double3 outputconnectable
Output in Euler angles
eulerX (eux) angle (double) 0.0deg outputconnectable
Output Euler "X" angle
eulerY (euy) angle (double) 0.0deg outputconnectable
Output Euler "Y" angle
eulerZ (euz) angle (double) 0.0deg outputconnectable
Output Euler "Z" angle
axisAngle (axa) compound n/a outputconnectable
Output axis and angle
axis (ax) double3 0.0, 0.0, 1.0 outputconnectable
Output axis (in axisAngle)
axisX (axx) distance (double) 0.0cm outputconnectable
X of the output axis
axisY (axy) distance (double) 0.0cm outputconnectable
Y of the output axis
axisZ (axz) distance (double) 1.0cm outputconnectable
Z of the output axis
angle (a) angle (double) 0.0deg outputconnectable
Output angle (in axisAngle)