A Rust solar system visualization built with macroquad.
It simulates:
- The Sun, Mercury, Venus, Earth, Mars, Jupiter, and Saturn
- Elliptical planetary orbits
- A toggleable
2Dand3Dview - The asteroid belt between Mars and Jupiter
- The Kuiper belt beyond Saturn
- Labels for planets and major belts
From the project root:
cargo runTab: toggle between2Dand3DUp: increase simulation time scale by10xDown: decrease simulation time scale by10xSpace: reset simulation time scale to1x real timeEsc: quit
Click + drag: orbit the cameraTwo-finger scroll: zoomLeft / Right: keyboard camera orbit fallbackW / S: keyboard camera tilt fallbackQ / E: keyboard zoom fallback
- Real-time-inspired orbital timing
- Elliptical orbit guides
- Planet trails
- Saturn ring rendering
- On-screen labels for planets, the asteroid belt, and the Kuiper belt
- src/main.rs: simulation and rendering code
- Cargo.toml: crate configuration
- The scale is intentionally adjusted for readability rather than strict physical size accuracy.
- The belts are stylized deterministic particle bands rather than individually simulated bodies.
- The app supports an internal screenshot capture mode for regenerating the checked-in PNGs:
CAPTURE_SCREENSHOTS=1 cargo run

