3D solar system simulator using OpenGL for graphics.
Get meson first.
$ sudo pacman -S glfw glm glew mesa libx11 libxi libxrandr \
libxinerama libxcursor pkgconf base-devel
$ sudo apt install libglfw3-dev libgl1-mesa-dev \
libx11-dev libxi-dev libxrandr-dev libxinerama-dev \
libxcursor-dev build-essential pkg-config libglm-dev \
libgl-dev libglu1-mesa-dev
$ sudo dnf install glfw-devel mesa-libGL-devel \
libX11-devel libXi-devel libXrandr-devel \
libXinerama-devel libXcursor-devel
$ brew install gcc pkg-config glfw glm
Just make 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

preview.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 |