About
Drag the barrel to set the angle and the knob to set the speed, fire, and see how far it goes. Then add air drag and find the angle that really gives the longest shot.
How projectile motion works
A projectile moves under gravity alone. Its horizontal velocity stays constant while the vertical velocity changes by g every second, so the path is a parabola. Without air the range is v₀² sin 2θ / g, the same for θ and 90° − θ, and the greatest range from the ground is at 45°.
In this virtual lab you aim a launcher in 3D, pick a golf ball, baseball, cannonball or shuttlecock and fire it on Earth, the Moon or Mars, in a vacuum or in air with quadratic drag. You measure range and time with instruments that have a least count, record them in a table that exports to CSV, and compare a measured range-against-angle curve with the closed form and with the drag model.
Steps
0 of 6 done
Formulas
Model and assumptions
The projectile is a point mass launched from height h with speed v₀ at angle θ. It obeys x″ = −k|v|x′ and y″ = −g − k|v|y′, with k = ρ·Cd·A/(2m) and A = πd²/4. In a vacuum k = 0, the path is a parabola and T = (v₀ sin θ + √(v₀² sin²θ + 2gh))/g, R = v₀ cos θ · T.
- The projectile is a point mass. Its diameter only sets the area for the air drag. In the scene it is drawn at least a few centimetres per scale unit so that it stays visible.
- Drag is quadratic, F = ½ρCd A v², with a constant Cd. Real Cd depends on the Reynolds number (a golf ball's dimples cut it) and on the Mach number: the warning appears above about 100 m/s.
- The projectile presets are round typical values, not measurements of one product. The shuttlecock is not a sphere: its Cd refers to the frontal area of the skirt, so treat it as a model of its strong drag.
- The air is still, with the density of the standard atmosphere at the altitude of the site (0 to 5 km). There is no wind. Spin is ignored, so there is no Magnus force: a real golf ball or baseball with backspin or curve flies differently. A gravity preset changes g only; the air stays Earth's.
- The ground is flat at y = 0 and g is uniform. No Earth curvature and no Coriolis force; the target is a disc of 1 m radius on the ground.
- With drag the equations are integrated with the fourth-order Runge-Kutta method at a 2 ms step, with a divergence guard. The landing and the apex are found by bisection inside the last step. Mechanical energy can only decrease; in the limit Cd → 0 the result converges to the closed form.
- The no-drag values shown are the closed form T = (v₀ sin θ + √(v₀² sin²θ + 2gh))/g and R = v₀ cos θ · T. The simulation without drag agrees with them to better than one part in a million.
- Instruments: the tape reads to 1 cm, the stopwatch to 0.01 s and the protractor to 1°. With noise on, each tape reading and each stopwatch reading gets a seeded random error, and the uncertainty in the table includes it.
Valid range of each quantity
| Quantity | Valid range | Default |
|---|---|---|
| Gravity g | 1 – 25 m/s² | 9.81 m/s² |
| Launch speed v₀ | 1 – 120 m/s | 30 m/s |
| Launch angle θ | 1 – 89 ° | 45 ° |
| Launch height h | 0 – 50 m | 0 m |
| Mass m | 4 – 10,000 g | 46 g |
| Diameter d | 0.02 – 0.3 m | 0.043 m |
| Drag coefficient Cd | 0 – 1.5 1 | 0.27 1 |
| Altitude of the site | 0 – 5,000 m | 0 m |
| Target distance | 1 – 1,500 m | 60 m |
References
- D. Halliday, R. Resnick and J. Walker, Fundamentals of Physics, chapter 4 (projectile motion).
- ISO 2533:1975 and the US Standard Atmosphere 1976: air density 1.225 kg/m³ at sea level and ρ = ρ₀(1 − 2.25577·10⁻⁵ h)^4.25588 in the troposphere.
- R. D. Mehta, Aerodynamics of sports balls, Annual Review of Fluid Mechanics 17 (1985): drag coefficients of golf and baseballs.
- NASA Planetary Fact Sheets: surface gravity of the Moon 1.62 m/s² and of Mars 3.71 m/s²; standard gravity 9.80665 m/s² (CGPM 1901).
- J. R. Taylor, An Introduction to Error Analysis, chapters 2 and 4 (reading uncertainty, propagation).
Quiz
FAQ
Frequently asked questions
What launch angle gives the longest range?
From flat ground and without air, 45°. From a height the best angle is lower: tan θ = v₀ / √(v₀² + 2gh). With air drag it is also lower than 45°, typically 30° to 40° for a golf drive, because a steep shot spends more time in the air and loses more speed.
Why do 30° and 60° give the same range?
Without drag the range is v₀² sin 2θ / g and sin 2θ is the same for θ and 90° − θ. The 60° shot goes higher and stays in the air longer, but its horizontal speed is lower, so the two effects cancel exactly.
How does air resistance change the path?
Drag acts against the velocity and grows with its square, so the projectile loses range, flight time and height, and the path is no longer symmetric: the descent is steeper than the climb. Heavy, small bodies such as a cannonball are affected much less than a shuttlecock.
What is terminal velocity?
It is the speed at which drag equals weight, so a falling body stops accelerating: v = √(2mg / (ρ Cd A)). The lab shows it for the chosen body, about 44 m/s for a golf ball in sea-level air.
How accurate is this simulation?
Without drag it matches the closed form to better than one part in a million. With drag it uses fourth-order Runge-Kutta, whose result does not change when the step is halved. The physics is simplified: constant drag coefficient, no wind and no spin.
Measurements
| # | θ (°) | v₀ (m/s) | h (m) | Medium | R ± ΔR (m) | T ± ΔT (s) | |
|---|---|---|---|---|---|---|---|
| No measurements yet. Record one from the Controls tab. | |||||||
Range R against launch angle
Greatest range of the model: 91.77 m at 45.0°.
With drag the best angle is below 45°. With a launch height it is also below 45° even without drag. Rows are drawn when they match the current speed, height, gravity and medium.