A simple 2D physics sandbox demonstrating:
- SFML - Box2D integration
- mouse interaction
- object spawning
- world query (Box2D)
- Joints (Box2D)
- Spritesheet/Tileset usage
sandbox.mp4
- Download it from Releases if you just want to test it
- Download and extract Box2D and copy box2d.lib and box2dd.lib to your project directory
- Open .sln and configure your paths in Project Settings
- Try to run it, it will give error but it will create the folders x64/Debug and x64/Release
- Download SFML and copy on those folders sfml-graphics(-d)-3.dll, sfml-system(-d)-3.dll and sfml-window(-d)-3.dll
- SPACE: spawn crate or box
- C: spawn crate
- B: spawn box
- Right click on object: grab it
- F: toggle fullscreen
- C++
- SFML 3
- Box2D 3