Created
April 18, 2018 10:04
-
-
Save todorok1/bc619a858938bee76064b876d0117e3c to your computer and use it in GitHub Desktop.
Unityチュートリアル・ガイドを表示するスクリプト。
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 GetExpectedPosition(Vector3 startPos, Vector3 speed, Vector3 gravity, float time){ | |
// 時刻を元に、ガイドの位置を計算する | |
Vector3 position = (speed * time) + (gravity * 0.5f * Mathf.Pow(time, 2)); | |
Vector3 guidePos = startPos + position; | |
return guidePos; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment