Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.