Skip to main content

Vector3.Distance(Vector3 a, Vector3 b)

Returns the distance between a and b.

Parameters:

NameTypeDescription
aVector3
bVector3

Returns:

typeDescription
numberdistance between a and b.

Usage

---@type Vector3
local a;

---@type Vector3
local b;


local val0 = Vector3:Distance(a, b)