Distance

From Fancade Wiki
Revision as of 01:25, 23 August 2025 by Osmo (talk | contribs) (Improve wording)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Distance
Distance.png
TypeScript block
ColliderNone
FolderMath
Ports
Inputs Vector
Vector
Outputs Distance

Outputs the distance between two points.

Example
Example

Example

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

Trivia

The old Distance script block used to look like this:

Distance_(old).png