Skip to content

Distance

Description

Distance is a Function on Vector2
Returns the distance between two Vector2s.

Example
local testVariable = Vector2.Distance(Vector2.New(1, 1), Vector2.New(1, 1))
Usage

network usage: Any (Client or Server/Host)
returns: float
parameters:
- a (Vector2)
- b (Vector2)