Rocket Trajectory Simulator
Physics engine with variable atmospheric density, drag coefficients, and gravity fields. Simulate multi-planet trajectories with real-time telemetry.
About
This is not a simple parabola plotter. This is a numerical integration engine that solves the equations of motion accounting for aerodynamic drag, which varies dynamically with altitude. On Earth, air density decreases exponentially as you ascend (Barometric Formula), meaning a projectile experiences less drag at the top of its arc than at sea level. This simulator models that reality.
It calculates flight paths for Earth, Mars, and the Moon, adjusting both gravitational acceleration (g) and atmospheric density profile (ρ). It allows users to visualize "Terminal Velocity" limits and the transition from atmospheric flight to near-vacuum conditions.
Formulas
The simulation runs a time-stepped loop solving forces. Drag Fd is calculated at every frame using instantaneous velocity v and altitude y:
Where density ρ scales barometrically:
Reference Data
| Variable | Earth Surface | Mars Surface | Effect on Flight |
|---|---|---|---|
| Gravity g | 9.81 m/s2 | 3.71 m/s2 | Determines arc height & flight time |
| Density ρ0 | 1.225 kg/m3 | 0.020 kg/m3 | Base drag force magnitude |
| Scale Height H | 8,500 m | 11,100 m | How fast air thins out with altitude |