
2D Physics Engine
A real-time C++17 rigid-body engine with quadtree collision detection that handles about 1,000 entities at 60 FPS.
Overview
A real-time C++17 2D rigid-body engine for circular bodies with mass, gravity, friction and elastic collisions, rendered with SFML.
How it’s built
- Quadtree broad-phase collision detection, with a toggleable quadtree overlay.
- Gravity, friction and spawn rates load from JSON at runtime.
- On-screen readouts for FPS, entity count and keybindings. Keys for pause, slow motion, clearing and spawning.
- Handles about 1,000 entities at 60 FPS.
Status
Done.