two point distance||doc136029

September 20, 2022

Format

 Lib.getPosDistance(pos1, pos2) 
  • The class to which the function belongs:Lib

Description

Get the distance between two points.


Parameters

Variable name type Description
pos1 Vector3 Coordinate point 1
pos2 Vector3 Coordinate point 2


Value Returned

type Description
float distance


Code Samples

local distance = Lib.getPosDistance(Lib.v3(1,0,0), Lib.v3(2,0,0))