Skip to content

vladimirdabic/CelestialSim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CelestialSim

This is a super basic celestial mechanics simulator implemented in C#. Movement of bodies is calculated using Newton's universal gravitational law.

Simulation Parameters

n is the step count, that is, the number of steps/calculations per frame.
Δt is the time step used to calculate the positions of bodies. A smaller Δt yields more precise results but more steps are required for a fast simulation.
G is the universal gravitational constant. For the most part you can let G = 1.

Controls

Click and drag to move around, select a body by clicking it.
Middle click is used to insert a body with the specified properties.
Mouse wheel to zoom in/out.

About

A simple celestial mechanics simulator

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages