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 nameParentsClassificationMFn typeCompatible function sets
angleBetweennodeutility/scalar:drawdb/shader/operation/angleBetweenkAngleBetweenkBase
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)TypeDefaultFlags
axisAngle (axa) compoundn/aoutputconnectable
Output axis and angle
axis (ax) double30.0, 0.0, 1.0outputconnectable
Output axis (in axisAngle)
axisX (axx) distance (double)double0.0cmoutputconnectable
X of the output axis
axisY (axy) distance (double)double0.0cmoutputconnectable
Y of the output axis
axisZ (axz) distance (double)double1.0cmoutputconnectable
Z of the output axis
angle (a) angle (double)0.0degoutputconnectable
Output angle (in axisAngle)
euler (eu) double3outputconnectable
Output in Euler angles
eulerX (eux) angle (double)0.0degoutputconnectable
Output Euler "X" angle
eulerY (euy) angle (double)0.0degoutputconnectable
Output Euler "Y" angle
eulerZ (euz) angle (double)0.0degoutputconnectable
Output Euler "Z" angle
vector1 (v1) double3outputinputconnectablestorable
First input vector (from)
vector1X (v1x) distance (double)double0.0cmoutputinputconnectablestorable
X of first input vector
vector1Y (v1y) distance (double)double1.0cmoutputinputconnectablestorable
Y of first input vector
vector1Z (v1z) distance (double)double0.0cmoutputinputconnectablestorable
Z of first input vector
vector2 (v2) double3outputinputconnectablestorable
Second input vector (to)
vector2X (v2x) distance (double)double0.0cmoutputinputconnectablestorable
X of second input vector
vector2Y (v2y) distance (double)double0.0cmoutputinputconnectablestorable
Y of second input vector
vector2Z (v2z) distance (double)double1.0cmoutputinputconnectablestorable
Z of second input vector