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

Drag force magnitude F_drag = 0.5 * C_d * rho * A * v^2
Drag force direction F_drag acts opposite to the velocity vector
Horizontal equation of motion m * ax = -F_drag * (vx / v)
Vertical equation of motion m * ay = -m * g - F_drag * (vy / v)
Speed magnitude v = sqrt(vx^2 + vy^2)
Terminal velocity (vertical fall) v_term = sqrt((2 * m * g) / (C_d * rho * A))
Initial horizontal velocity component vx0 = v0 * cos(theta)
Initial vertical velocity component vy0 = v0 * sin(theta)

Key Variables

Symbol Unit Description
v0m/sInitial launch speed of the projectile
thetadegreesLaunch angle measured from the horizontal
vxm/sHorizontal component of velocity at any instant
vym/sVertical component of velocity at any instant
vm/sTotal speed (magnitude of the velocity vector)
mkgMass of the projectile
gm/s^2Gravitational acceleration, approximately 9.81 m/s^2 near Earth's surface
C_ddimensionlessDrag coefficient; depends on the shape and surface of the object
rhokg/m^3Air density; approximately 1.225 kg/m^3 at sea level and 15 degrees C
Am^2Cross-sectional area of the projectile facing the flow
F_dragNMagnitude of the drag force acting on the projectile
axm/s^2Horizontal acceleration due to drag
aym/s^2Vertical acceleration due to gravity and drag combined
v_termm/sTerminal velocity reached when drag exactly balances gravity

Real World Examples


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