Skip to content

shonrb/gravity-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gravity Simulation

Planet and moon orbiting a sun This is an n-body gravity simulation which I created for educational purposes. My aim was to create a tool which can help to develop an intuitive understanding of Newton's law of universal gravitation in a visually interesting way.

Building

Use GNU make:

make libs && make build

Requires g++. Tested on linux, but not macOS or windows.

Dependencies

  • SDL2
  • OpenGL
  • GLM (in submodule)
  • ImGUI (in submodule)

Screenshots

editing 3 body 3 body stable 3 body relative binary star system binary chaotic solar system

About

An n-body gravity simulation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published