Distance

Revision as of 12:58, 13 June 2025 by -u ndefined- (talk | contribs) (Add an example usage for the block)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Outputs the distance between two vectors.

Distance
Distance.png
TypeScript block
ColliderNone
FolderMath
Ports
Inputs Vector
Vector
Outputs Distance
Example
Example

Example

A notable use case for Distance is picking the closest object.

Trivia

The old Distance script block used to appear like this: