Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created November 21, 2020 08:23
Show Gist options
  • Save todorok1/5234b9e25021f5012d19c3fcb7cd9e7e to your computer and use it in GitHub Desktop.
Save todorok1/5234b9e25021f5012d19c3fcb7cd9e7e to your computer and use it in GitHub Desktop.
Vector3型で向きと大きさを取得
// 向きを取得します。
Vector3 normalVector = myVector.normalized;
// 大きさを取得します。
float mag = myVector.magnitude;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment