A simple Box2D + SFML combination, where the user can use the mouse to create rectangular bodies. Great for virtual dominoes!
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Box2D
include
src
COPYING
README.md
libgcc_s_dw2-1.dll
main.cpp
sfml-audio.dll
sfml-graphics.dll
sfml-network.dll
sfml-system.dll
sfml-window.dll
sfml_box2d_test.cbp
sfml_box2d_test.depend
sfml_box2d_test.layout

README.md

sfml-box2d-demo

A simple Box2D + SFML combination, where the user can use the mouse to create rectangular bodies. Great for virtual dominoes!

You can draw out rectangles with your mouse, which become physics objects. You can also press space to toggle showing the mouse cursor, in case you have a touch screen.

Download the executable to try it out!

Also check out the original blog post.


Screenshot