Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created Nov 21, 2020
Embed
What would you like to do?
2つのベクトルから距離を取得
// 距離を取得します。
Vector3 playerVector = new Vector3(1.0f, 2.0f, 3.0f);
Vector3 enemyVector = new Vector3(4.0f, 5.0f, 6.0f);
float distance = Vector3.Distance(playerVector, enemyVector);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment