Studio and Graph › Voxel › Math
Distance To Point
Straight-line distance from the sample point to a target point.

The Distance To Point node
When to use it
Straight-line distance from the sample point to a target point.
Subtract a radius and you have a sphere. Leave it raw and you have a radial falloff to drive something with.
When you want the shape, the Sphere primitive is fewer nodes. This is for when you want the number.
Pins
| Pin | Type | Description |
|---|---|---|
TargetX |
Number | X of the point you are measuring to. |
TargetY |
Number | Y of the point you are measuring to. |
TargetZ |
Number | Z of the point you are measuring to. |
| Pin | Type | Description |
|---|---|---|
Distance |
Number | How far the voxel being sampled is from Target. |
Available in Mesh Morpher Graph and Mesh Morpher Studio.