The gravity assist maneuver was first used in 1959 when Luna 3 photographed the far side of Earth's Moon.
App to demonstrate gravitational slingshot maneuvers.
https://adamnfish.github.io/luna/
Install dependencies:
npm installStart the dev server (available at http://localhost:1234):
npm startRun the Elm tests:
npm testBuild for production (output in dist/):
npm run buildThis is an Elm application built using
Parcel with
@parcel/transformer-elm. The
program runs from src/Main.elm, which provides the
initial state and browser integration (including a subscription to
requestAnimationFrame). Updates to the state come from messages,
which are processed in src/Msg.elm. The program's
datastructures are definined in src/Model.elm.
Lastly, the View renders the current model after every update and is
responsible for producing the app's HTML interface. This is found in
src/View.elm.
Most of Luna's tricky logic is modelling the physics of bodies in 2D
space. This functionality can be found in
src/Physics.elm.