Distance: Difference between revisions
Nikitaivanov (talk | contribs) (Created page with "File:Distance1.png Outputs the distance between two vectors. File:InShot_20220218_181010446.jpg Category:Blocks ") |
-u ndefined- (talk | contribs) m (Add an example usage for the block) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[ | {{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. | |||
[[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
Outputs the distance between two vectors.
Distance
Type | Script block |
Collider | None |
Folder | Math |
Ports | |
---|---|
Inputs | Vector Vector |
Outputs | Distance |

Example
A notable use case for Distance is picking the closest object.
Trivia
The old Distance script block used to appear like this: