Version: 2020.2
言語: 日本語
public static float Distance (Vector2 a, Vector2 b);

説明

ab の間の距離を返します

Vector2.Distance(a, b)(a-b).magnitude と同じです。