Distance

From Fancade Wiki
Distance
Distance.png
TypeScript block
ColliderNone
FolderMath
Ports
Inputs Vector
Vector
Outputs Distance

Outputs the distance between two vectors.

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:

Distance_(old).png