Distance
7/14/25Less than 1 minute
Vector3.Distance(Vector3 a, Vector3 b)
Returns the distance between a and b.
Parameters:
Name | Type | Description |
---|---|---|
a | Vector3 | |
b | Vector3 |
Returns:
type | Description |
---|---|
number | distance between a and b. |
Usage
---@type Vector3
local a;
---@type Vector3
local b;
local val0 = Vector3:Distance(a, b)