3D solar system simulator using OpenGL for graphics.
Get meson first.
$ sudo pacman -S mesa libx11 libxi libxrandr libxinerama libxcursor \
pkgconf base-devel$ sudo apt install libgl1-mesa-dev libgl-dev \
libx11-dev libxi-dev libxrandr-dev libxinerama-dev \
libxcursor-dev build-essential pkg-config$ sudo dnf install mesa-libGL-devel \
libX11-devel libXi-devel libXrandr-devel \
libXinerama-devel libXcursor-devel \
gcc-c++ pkgconf-pkg-config ninja-buildInstall the Xcode command line tools, then:
$ brew install meson ninja pkg-configMake sure you have meson installed and you are building from w64devkit terminal. That is also what I did in my case for Windows which was easy enough. Have no knowledge about msys2 stuff.
$ ./build.sh
$ ./build.sh --run
$ meson test -C build
blackholes.mp4
| Key / Input | Action |
|---|---|
| WASD | Move camera horizontally |
| SPACE | Move camera upward |
| LSHIFT | Move camera downward |
| ESC | Toggle mouse capture and GUI visibility |
| R | Reset simulation |
| B | Add a custom celestial body at the cursor |
| P | Toggle pause/resume simulation |
| C | Remove last celestial body |