Documentation
    Preparing search index...

    Function predictBallistic

    • Position of a projectile under constant acceleration after time seconds:

      p(t) = position + velocity · t + ½ · gravity · t²
      

      gravity is any constant acceleration (m/s²) — it is called gravity because that is what it almost always is. time is unclamped: negative times extrapolate backwards along the same parabola, matching the trajectory module's rule that a path is a function of time.

      Parameters

      Returns Vector3