Vector2.Distance||doc136391

September 20, 2022

Format

Vector2.Distance(vec1, vec2)

Describe

Calculate the distance between two vectors.

parameter

Variable name Type Describe
vec1 Vector2 Vector 1
vec2 Vector2 Vector 2

Return value

Type Describe
float distance