
エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
【Unity】空気抵抗を持つ物体の放物線の座標を取得できる関数 - Qiita
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
【Unity】空気抵抗を持つ物体の放物線の座標を取得できる関数 - Qiita
public static Vector3 ParabolaPos(Vector3 position, Vector3 velocity, float time, float drag = 0f... public static Vector3 ParabolaPos(Vector3 position, Vector3 velocity, float time, float drag = 0f, Vector3? gravity = null, float? deltaTime = null) { if (!gravity.HasValue) gravity = Physics.gravity; if (!deltaTime.HasValue) deltaTime = Time.fixedDeltaTime; if (drag <= 0f) { return position + velocity * time + gravity.Value * 0.5f * (time * time + time * deltaTime.Value); } var r = Mathf.Clamp01(