Skip to content

A 3D sandbox for simulating planetary orbits made with Bevy

License

Notifications You must be signed in to change notification settings

jan-tennert/SolarSim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simulation

image

A complete simulation of our solar system made with Bevy with many features including:

  • True to scale gravitational simulation of all bodies

  • Simulated planetary rotation speeds

  • Drawing orbital lines of bodies

  • Manipulating orbits by changing masses

  • High quality 3D models of all planets and moons from NASA

  • Speed up the simulation by increasing substeps (higher accuracy, slower) or timesteps (decreases accuracy, no difference in speed)

  • Built-in scenario editor to create and save your own scenarios.

    • Support for loading ephemeris and rotation data from SPICE files
      Note that the SPICE files themselves are not included in the binary and repository due to their size

Installation

Download the newest binaries from the releases and run the binary to get started!

Scenarios

You can load, edit and create scenarios within the application. A scenario is a collection of bodies with their initial positions, velocities, rotations and other properties. image

SPICE files can be obtained from NASA and some also from the Rust Toolkit used, ANISE. They should be stored in the data folder. If loading for the first time, SolarSim copies the SPICE files to the data folder.

  • If you load in a SPK file like de400s.bsp, you can load in starting positions and velocities by putting in the Ephemeris ID in the body panel and clicking Load starting data.
  • If you load in a PCA file like pck11.pca, you can load in rotation data and shape data by putting in the fixed frame ids (target id/observer id) in the body panel and clicking Load starting data.

Sponsoring

If you like the project and want to support it, consider sponsoring me on Ko-fi or directly on PayPal.