jan-tennert / Simulation

A complete simulation of our solar system made with Bevy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 or timesteps

  • External editor "horizon-ui" to add, edit and remove bodies

Try it out in the browser: https://jan-tennert.github.io/Simulation/

Installation

Download the newest binaries from the releases and run Simulation.exe to get started!

Adding new bodies

If you want to customize or even add new bodies, run horizon-ui.jar. You can right-click on stars and planets to add children.

Make sure you pay attention to the units!

You can get vector positions and velocity on the Horizons System website. You have to make sure you have the right settings:

  • For the Ephemeris Type, select Vector Table

  • For the Target Body, you can search for the body you want to add.

  • You have to make sure that all bodies were measured at the same time, so to make sure:

    • Open the Horizon Ui

    • Click on Options and select Change Time Settings

    • There should be the date all bodies should be from

    So if you have the date, click on Time Specification and change the starting date depending on what you got from horizon-ui

  • The coordinate center & table settings should remain as is.

Then click on Generate Ephemeris and read the first entry of the list.

image

The first row will be your starting positions and the second row your starting velocity, you can paste them as is into the HorizonUi.

About

A complete simulation of our solar system made with Bevy

License:MIT License


Languages

Language:Rust 97.5%Language:JavaScript 1.4%Language:HTML 0.5%Language:WGSL 0.5%Language:CSS 0.1%