An interactive, two-dimensional Earth–Moon mission simulator built with vanilla JavaScript and HTML Canvas. Explore a guided Artemis II-inspired flight or plan your own trans-lunar injection.
- Follow a guided mission from Earth orbit through a lunar flyby and return.
- Plan a burn by adjusting its ignition time and change in velocity.
- Compare the planned trajectory with two trajectories using ±5 m/s burn-speed errors.
- Inspect simulated altitude, velocity, orbital energy, and approximate time-dilation readouts.
The simulation uses a fixed Earth, an orbiting Moon, and a spacecraft affected by both bodies' Newtonian gravity. A velocity Verlet integrator advances the Moon and spacecraft with step sizes that change with proximity. The relativistic readouts use low-velocity and weak-field approximations relative to an idealized Earth-surface observer.
The guided trajectory and its markers are calculated by the simulator; they are not live NASA ephemeris data. This is an educational model inspired by Artemis II, not an official mission trajectory or validated flight software. No numerical accuracy guarantee is claimed.
No installation or build step is required:
git clone https://github.com/dlowzzxx/artemis-ii-orbital-sim.git
cd artemis-ii-orbital-simOpen index.html in a modern browser. The included audio files are used by the music controls; browser autoplay rules may require a click before sound starts.
index.html— interface and controlsscript.js— simulation, trajectory prediction, and interactionstyle.css— visual presentation- Images and audio — assets used by the browser experience
Erin Krasniqi. I built this project to make orbital mechanics more approachable through an interactive simulation.
MIT License - feel free to use the physics core for your own orbital projects.