Inspiration
Gravity assist is an optimization of sorts. A spacecraft borrows a little of a planet's orbital momentum and leaves faster while also adjusting its trajectory without burning extra fuel. Cassini mission to Saturn used four gravity assists to get there.
What it does
Users can select a launch date, speed and direction and can see predicted path update live. Multiple views to show the gravity assist. The spacecraft can be controlled with burn controls, scratch like blocks, or even keyboard keys. Google Gemini can be used to explain concepts, explain mission log and write control code.
How we built it
The physics engine uses real NASA JPL planet data, and is in Typescript. The 3D view uses Three.js, Blockly for scratch like coding blocks. Site runs on Next.js and hosted on Github Pages. Gemini is reached through a Cloudflare Worker.
Challenges we ran into
The site is static, so that meant building a proxy, initial deploys silently failed because of a Cloudflare rule. Gemini formatting issues.
Accomplishments that we're proud of
The visuals are nice, block programming with some abstracted concepts is quite intuitive. Gemini can write full programs and answer questions.
What we learned
Space is hard.
What's next for CassiniDivision Slingshot-Lab
Could add more missions, like Voyager, and maybe a leaderboard.
Built With
- blockly
- cloudflare
- github
- nextjs
- tailwindcss
- three.js
- vitest
- zustland