A fast 2D physics engine in C++ featuring rigid body dynamics, SAT-based collision detection, impulse-based resolution, a dynamic quadtree for broad-phase optimization, and multithreaded execution. Includes an interactive ImGui debugger.
- A C++20 compatible compiler (e.g., GCC, Clang, MSVC).
- CMake (for building the project).
- GLFW (for windowing and OpenGL context).
- OpenGL (typically available with your graphics drivers).
-
Clone the repository:
git clone https://github.com/FinalTrack/Osmium.git cd Osmium -
Create a build directory:
mkdir build cd build -
Run CMake to configure the project:
cmake ..
*If GLFW is not found automatically, you might need to install it via your system's package manager
-
Build the project:
cmake --build .
After a successful build, you can run the executable from the build directory:
./physics