-
-
Save todorok1/5234b9e25021f5012d19c3fcb7cd9e7e to your computer and use it in GitHub Desktop.
Vector3型で向きと大きさを取得
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 向きを取得します。 | |
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