Skip to content

dalestone/planets-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Planets Simulation

A Rust solar system visualization built with macroquad.

It simulates:

  • The Sun, Mercury, Venus, Earth, Mars, Jupiter, and Saturn
  • Elliptical planetary orbits
  • A toggleable 2D and 3D view
  • The asteroid belt between Mars and Jupiter
  • The Kuiper belt beyond Saturn
  • Labels for planets and major belts

Screenshots

3D View

3D view

2D View

2D view

Run

From the project root:

cargo run

Controls

General

  • Tab: toggle between 2D and 3D
  • Up: increase simulation time scale by 10x
  • Down: decrease simulation time scale by 10x
  • Space: reset simulation time scale to 1x real time
  • Esc: quit

3D View

  • Click + drag: orbit the camera
  • Two-finger scroll: zoom
  • Left / Right: keyboard camera orbit fallback
  • W / S: keyboard camera tilt fallback
  • Q / E: keyboard zoom fallback

What It Shows

  • 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

Project Layout

Notes

  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages