Go to: Related nodes. Attributes.

This node computes the distance between two points: point1 and point2. If inMatrix1 and inMatrix2 are provided, they are used to multiply the points before the computation.

The distance result is returned in world units.
Node name Parents Classification MFn type Compatible function sets
distanceBetween node utility/general kDistanceBetween kBase
kNamedObject
kDependencyNode
kDistanceBetween

Related nodes

holdMatrix, passMatrix, unitConversion, timeToUnitConversion, unitToTimeConversion

Attributes (11)

distance, inMatrix1, inMatrix2, point1, point1X, point1Y, point1Z, point2, point2X, point2Y, point2Z

Long name (short name) Type Default Flags
point1 (p1) double3 inputconnectablestorable
First input point
point1X (p1x) distance (double) 0.0cm inputconnectablestorable
X of first input point
point1Y (p1y) distance (double) 0.0cm inputconnectablestorable
Y of first input point
point1Z (p1z) distance (double) 0.0cm inputconnectablestorable
Z of first input point
inMatrix1 (im1) matrix identity inputconnectablestorable
Matrix to multiply the first point by
point2 (p2) double3 inputconnectablestorable
Second input point
point2X (p2x) distance (double) 0.0cm inputconnectablestorable
X of second input point
point2Y (p2y) distance (double) 0.0cm inputconnectablestorable
Y of second input point
point2Z (p2z) distance (double) 0.0cm inputconnectablestorable
Z of second input point
inMatrix2 (im2) matrix identity inputconnectablestorable
Matrix to multiply the second point by
distance (d) distance (double) 0.0cm outputconnectable
Output distance