Projectile with Drag
Introduction
When an object is launched through the air, gravity pulls it downward while the surrounding air pushes back against its motion. This resistance — called air drag — modifies the clean, symmetric parabola predicted by basic projectile theory and produces a shorter, steeper, and asymmetric trajectory. Understanding drag is essential for everything from firing artillery shells to designing sports equipment, and it bridges the gap between idealised classroom physics and the messier real world.
In the simplest model of projectile motion, the only force acting on the object is gravity, which gives a perfectly parabolic path. Once we introduce drag, the equations become coupled and nonlinear, requiring either numerical methods or simplifying assumptions to solve. This simulation uses a standard quadratic drag model and integrates the equations of motion step by step, letting you watch the trajectory change as you dial the drag coefficient up or down.
The Physics Explained
Drag is a force that opposes motion through a fluid — in this case, air. For objects moving at everyday speeds (not crawling through honey, not faster than sound), the dominant contribution is quadratic drag, also called pressure drag or form drag. The drag force grows with the square of the object's speed, which is why doubling your speed quadruples the air resistance you feel on a bicycle.
The drag force always points in the direction opposite to the velocity vector. This is important: unlike gravity, which acts purely downward, drag acts against wherever the object is heading. Early in the flight, when the projectile is moving upward and forward, drag has both a downward component and a backward component, slowing the ascent faster than gravity alone would. On the way down, drag now has an upward component as well as a backward component, so the descent is slower and the landing point is closer to the launch point than the peak of the arc.
The result is a trajectory that is no longer symmetric. The ascending half is shorter in horizontal distance than the descending half, and the peak is shifted toward the launch point relative to the midpoint of the range. The object also lands at a steeper angle than it was launched — the exact opposite of a drag-free parabola, where launch angle equals landing angle.
At some point during a long fall, the drag force grows large enough to exactly balance gravity. When this happens, the net vertical force is zero, the object stops accelerating downward, and it reaches its terminal velocity. A baseball, a skydiver, and a raindrop each have a characteristic terminal velocity determined by their mass, size, and shape.
The drag coefficient captures how aerodynamically streamlined an object is. A smooth sphere has a lower drag coefficient than a flat disc of the same cross-sectional area. Engineers spend considerable effort reducing drag coefficients in vehicles, aircraft, and sporting projectiles — dimples on a golf ball, for example, actually reduce drag compared with a smooth ball by triggering a turbulent boundary layer that stays attached to the surface longer.
Key Equations
Key Variables
| Symbol | Unit | Description |
|---|---|---|
| v0 | m/s | Initial launch speed of the projectile |
| theta | degrees | Launch angle measured from the horizontal |
| vx | m/s | Horizontal component of velocity at any instant |
| vy | m/s | Vertical component of velocity at any instant |
| v | m/s | Total speed (magnitude of the velocity vector) |
| m | kg | Mass of the projectile |
| g | m/s^2 | Gravitational acceleration, approximately 9.81 m/s^2 near Earth's surface |
| C_d | dimensionless | Drag coefficient; depends on the shape and surface of the object |
| rho | kg/m^3 | Air density; approximately 1.225 kg/m^3 at sea level and 15 degrees C |
| A | m^2 | Cross-sectional area of the projectile facing the flow |
| F_drag | N | Magnitude of the drag force acting on the projectile |
| ax | m/s^2 | Horizontal acceleration due to drag |
| ay | m/s^2 | Vertical acceleration due to gravity and drag combined |
| v_term | m/s | Terminal velocity reached when drag exactly balances gravity |
Real World Examples
- Golf ball in flight: A golf ball is hit at high speed and experiences significant quadratic drag. Its dimpled surface lowers the effective drag coefficient compared with a smooth sphere, allowing it to travel much farther. Without those dimples, a drive would cover roughly half the distance.
- Artillery and ballistics: Military range tables have accounted for air resistance since the 19th century. A shell fired at 45 degrees in a vacuum would achieve maximum range, but with drag the optimal angle drops to around 30 to 35 degrees depending on the projectile and altitude. This discrepancy cost lives before the mathematics was properly worked out.
- Sports ball trajectories: A thrown baseball, a kicked football, or a tennis serve all deviate noticeably from a parabola. Coaches and players intuitively learn these trajectories through practice, but aerodynamicists model them explicitly using drag — and in some cases also spin-induced Magnus force — to design better equipment and training aids.
- Skydiving and parachutes: A skydiver in freefall accelerates until drag matches their weight, reaching terminal velocity at roughly 55 m/s in a belly-to-earth position. Deploying a parachute dramatically increases the cross-sectional area A and hence F_drag, quickly slowing the diver to a safe landing speed of around 5 m/s.
- Rainfall and hailstones: Raindrops fall at terminal velocity rather than accelerating all the way to the ground. A large raindrop has a terminal speed of about 9 m/s. Hailstones, being denser and more compact, have higher terminal velocities and can cause significant damage to crops and vehicles.
How the Simulation Works
The simulation lets you adjust the launch speed, launch angle, projectile mass, and drag coefficient using on-screen sliders. When you press Launch, the projectile is fired from the left side of the canvas and its path is traced in real time.
Under the hood, the motion is computed using a simple numerical integration method — specifically Euler integration with a small time step. At each step, the simulation calculates the current speed from the horizontal and vertical velocity components, computes the drag force magnitude using the quadratic formula, resolves the drag into horizontal and vertical components opposing the current velocity, adds the gravitational acceleration to the vertical component, updates the velocities, and moves the projectile's position accordingly. This loop repeats hundreds of times per second of simulated time, producing a smooth and accurate trajectory.
A drag-free parabola is also drawn as a faded reference curve so you can directly compare the two trajectories and see exactly how much drag shortens the range, lowers the peak height, and shifts the landing angle. The simulation displays the range, maximum height, and time of flight for both the drag and no-drag cases side by side.
Setting the drag coefficient to zero reduces the simulation to standard drag-free projectile motion and the two curves overlap perfectly, confirming the underlying physics is consistent. Increasing the drag coefficient progressively squashes and tilts the trajectory, illustrating why real projectiles always land shorter and steeper than the vacuum parabola predicts.
Further Reading
- Drag-free projectile motion — the idealised parabolic baseline and its analytical solution
- The Magnus effect — how spin on a projectile generates a sideways lift force, curving the path of footballs, baseballs, and tennis balls
- Numerical integration methods — how Euler, Verlet, and Runge-Kutta methods are used to solve equations of motion that cannot be solved analytically
- Terminal velocity and Stokes drag — the linear drag regime that applies to very small or very slow objects moving through viscous fluids
- Ballistic trajectory optimisation — how launch angle for maximum range changes with drag coefficient and projectile properties