Select your preferred scripting language. All code snippets will be displayed in this language.
History
Returns the distance between a and b.
a
b
Vector2.Distance(a,b) is the same as (a-b).magnitude.
Vector2.Distance(a,b)
(a-b).magnitude