Distance: Difference between revisions

(Created page with "File:Distance1.png Outputs the distance between two vectors. File:InShot_20220218_181010446.jpg Category:Blocks ")
 
m (Add an example usage for the block)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[File:Distance1.png]]
{{Block
|image=Distance.png
|type=s
|folder=math
|input1={{Port|v}}
|input2={{Port|v}}
|output1={{Port|n|Distance}}
}}
Outputs the distance between two [[vector]]s.


Outputs the distance between two [[Vector|vectors]].
[[File:Distance example.jpg|frameless|center|Example]]


[[File:InShot_20220218_181010446.jpg]]
== 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

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: