Presets
Playback
Launch
Speed, angle and height of the launcher. You can also drag on the scene.
World
Gravity, air density and wind.
Ball
Mass, diameter and drag coefficient set the drag acceleration.
Target
Distance and radius of the target on the ground.
Layers
Model checks
The science
Projectile motion without air
With constant gravity g and no drag the horizontal speed stays constant and the vertical speed changes linearly: x = v cos(a) t, y = h + v sin(a) t - g t^2 / 2. The path is a parabola and the range on level ground from height h is R = v cos(a) (v sin(a) + sqrt(v^2 sin^2(a) + 2 g h)) / g. From ground level this reduces to v^2 sin(2a) / g, the longest throw at 45 degrees.
Air drag
At ball speeds the drag is quadratic: F = 1/2 rho C_d A |v_rel| v_rel, opposite to the velocity relative to the air (the wind adds to the relative velocity). The equations of motion dv/dt = -k |v_rel| v_rel - g with k = rho C_d A / (2 m) have no closed form, so the page integrates them with fourth-order Runge-Kutta in 2 ms steps. Drag shortens the range, makes the descent steeper than the climb and moves the best launch angle below 45 degrees. A heavy small ball is less affected than a light large one (the ratio m / (C_d A) matters).
Terminal speed
Falling long enough, drag balances weight: v_t = sqrt(2 m g / (rho C_d A)). The checks compare this closed form with a numerical 200 s drop.
Other worlds and altitude
Changing g (Moon 1.62, Mars 3.71, Jupiter 24.8 m/s2) scales every time and distance; the Moon preset also has no air. Thin air (5 km altitude, 0.736 kg/m3) reduces drag.
Honest simplifications
A smooth sphere with constant drag coefficient (real balls change C_d with speed, the "drag crisis", and spin adds the Magnus force, which is not modelled); uniform gravity and air density; a steady horizontal wind; no bounce, rolling or ground friction; the launch point is at x = 0 and the ground is flat.
What to try
- Pick "Vacuum, 45 degrees", then "Baseball with air drag": watch the dashed vacuum path against the real one and read the range lost to drag.
- In the second graph the green curve peaks left of the dashed vacuum curve: drag lowers the best angle.
- Drag on the scene to aim (direction = angle, length = speed) and hit the red target; press "New target" for a new distance.
- Try a headwind, the Moon, or the 30 m cliff.