📐Distance

Calculates distance between objects and optionally applies scale

This is a simple behavior used to calculate distance (in world coordinates) between 2 objects. The resulting value can be scaled and optionally applied to the object transform scale.

Distance creates a single channel outputting the value calculated.

Distance only calculates the value and has no effect on objects, unless Apply To Transform is enabled.

Distance Editor

For common features please refer to Menu Bar and Update Settings.

From / To

Assign the transforms to calculate distance between. These may be anywhere in the scene hierarchy. Distance is calculated in world coordinates.

If From or To are left unassigned, the current object transform is used.

Scale

Multiplies the distance to scale the output value. If accurate distance measurements are needed, leave this value at 1.

Apply To Transform

Enable this to apply the output value to the current object's transform scale. This may be used to create dynamic scaling objects for special effects and UI elements.

Constant Size in Camera

One use case for Distance is to maintain the size of an object as it appears in camera by scaling the object by its distance from the camera. No matter how far away or close the object gets, its size onscreen remains fixed.

Last updated