Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created April 18, 2018 10:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save todorok1/bc619a858938bee76064b876d0117e3c to your computer and use it in GitHub Desktop.
Save todorok1/bc619a858938bee76064b876d0117e3c to your computer and use it in GitHub Desktop.
Unityチュートリアル・ガイドを表示するスクリプト。
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