Distance: Difference between revisions

From Fancade Wiki
m (Add trivia)
m (Add an example usage for the block)
 
Line 10: Line 10:


[[File:Distance example.jpg|frameless|center|Example]]
[[File:Distance example.jpg|frameless|center|Example]]
== Example ==
A notable use case for Distance is [[tap to pick closest object|picking the closest object]].


== Trivia ==
== Trivia ==

Latest revision as of 12:58, 13 June 2025

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