Distance: Difference between revisions

From Fancade Wiki
(Updated the page)
m (Add an example usage for the block)
 
(One intermediate revision by the same user not shown)
Line 11: Line 11:
[[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 ==
The old Distance script block used to appear like this:
{{Image|Distance_(old).png}}


[[Category:Blocks]]
[[Category:Blocks]]

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