A custom-built physics engine implemented from scratch in C++ using SDL2. This project focuses on understanding the mathematics that goes into the making of powerful physics engines, while maintaining maximum efficiency.
- C++ 17 compiler (GCC/Clang)
- SDL2 development libraries
- CMake (3.10 or higher)
Install MSYS2 From the terminal install the needed dependencies
pacman -S mingw-w64-ucrt-x86_64-gcc mingw-w64-ucrt-x86_64-cmake mingw-w64-ucrt-x86_64-sdl2 mingw-w64-ucrt-x86_64-makeTo run the simulation, ensure that SDL2 is installed on your system. If you are using Fedora, you can install the development headers using:
sudo dnf install SDL2-develCreate a build directory:
mkdir build
cd buildGenerate build files and compile the source code:
cmake ..
makeRun the simulation:
./main