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: