Newtonian celestial bodies simulator.
In physics and astronomy, an N-body simulation is a simulation of a dynamical system of particles, usually under the influence of physical forces, such as gravity (see n-body problem). N-body simulations are widely used tools in astrophysics, from investigating the dynamics of few-body systems like the Earth-Moon-Sun system to understanding the evolution of the large-scale structure of the universe. In physical cosmology, N-body simulations are used to study processes of non-linear structure formation such as galaxy filaments and galaxy halos from the influence of dark matter. Direct N-body simulations are used to study the dynamical evolution of star clusters.
You need install next libraries: sudo apt install -y mesa-utils freeglut3-dev
- GL
- GLUT
Clone repository:
git clone https://github.com/mgonzaledk/newton-simulator
Create build directory:
cd newton-simulator && mkdir -p Build
Create Makefile and compile:
cd Build/ && cmake .. && make -j4
Just do it:
./newton-simulator
Move with W, A, S, D, +, - and mouse.
Please, follow code of conduct and read guidelines. If you have a trouble, consider opening an issue and fill template card.
Made with ❤️.