Clever Quest Lab ← Labs

Projectile Motion

Fire a ball at any angle, change gravity and air, and compare the paths it takes.

Keys on the view: Enter fire, Space pause/resume, ↑/↓ angle, ←/→ speed (Shift = bigger steps), C clear all.

Set the angle and speed, then press Fire.

Launch

Readouts

Range
0 m
Max height
0 m
Flight time
0 s
Impact speed
0 m/s
Impact angle
0°
Range, no air
0 m

Graph

Throws

    Air

    Off: the ideal parabola. On: quadratic drag from the mass, size and drag coefficient. Wind (+ blows toward the target, − against) acts only through air resistance.

    Target

    Score: 0 hits in 0 throws

    Display

    How to use it

    Choose a launch angle, a launch speed and a launch height, then press Fire. The projectile flies along its path while the trace is drawn, and the readouts show the range, the maximum height, the flight time and the impact speed. Fire again with new settings and the earlier paths stay on screen in other colours, so you can compare them. Until you fire, a dashed line previews the path for the current settings.

    Pick another world from the Body menu, switch on air resistance and wind, or show a target and try to hit it. The view zooms by itself so the whole path always fits, with distances marked in metres.

    Controls

    How it works

    Without air, the horizontal and vertical motions are independent. Horizontally the speed stays constant. Vertically the projectile has a constant downward acceleration g. With launch speed v, angle θ and launch height h:

    x(t) = v cosθ · t
    y(t) = h + v sinθ · t − ½gt2

    Eliminating t gives a parabola. Setting y = 0 gives the results the readouts show:

    flight time T = (v sinθ + √((v sinθ)2 + 2gh)) / g
    range R = v cosθ · T
    maximum height H = h + (v sinθ)2 / (2g)
    impact speed = √(v2 + 2gh)

    On level ground (h = 0) the range becomes v2 sin 2θ / g, largest at 45°. For 45°, 20 m/s and g = 9.81 m/s² that is 40.77 m, a height of 10.19 m and a flight time of 2.88 s. The “Range, no air” readout always shows this formula.

    With air resistance there is no simple formula, so the page integrates the motion numerically. The drag force is ½ρCdA|u|u, where ρ is the air density, Cd the drag coefficient, A the cross-section area of the ball and u its velocity relative to the air. Wind simply shifts the air’s velocity. Dividing by the mass gives the acceleration. The speed at which drag balances weight is the terminal speed, √(2mg / (ρCdA)). The solver is the fourth-order Runge–Kutta method with a fixed step of 2 ms. The landing point is found by interpolating inside the last step and refining it, and a hit is registered when the path between two steps passes within the target radius.

    The model is simplified: gravity and the drag coefficient are constant, the ground is flat, the air density does not change with height, and spin and Earth’s rotation are ignored. The Body menu changes gravity only, not the air. The Moon has no atmosphere, so leave air resistance off there to match reality.

    Things to try

    Frequently asked questions

    Does the mass change the path?

    Not without air. Gravity accelerates every mass equally. With air resistance, a heavier ball of the same size is slowed less and flies closer to the ideal parabola.

    Why is the impact speed equal to the launch speed?

    On level ground with no air, energy is conserved, so the ball returns to the launch height with the same speed. From a higher launch point it lands faster, and with air it lands slower.

    Is 45° always the best angle?

    Only on level ground without air. Launching from a height or adding drag lowers the best angle.

    How exact are the numbers?

    Without air they match the formulas to a tiny fraction of a millimetre, because the integrator is exact for constant acceleration. With air, the error of the 2 ms step is far below what the sliders can express.

    Is it realistic for a real ball?

    Roughly. Real drag coefficients vary with speed, and spin can curve the path. Treat the results as a clear model, not a ballistics table.

    More free games and simulators