Learn Box2D

Learn how to use the Box2D physics library

Code Repository

Get Started


Start here

Physics World

Create a world of solid objects

First Solid Body

Create your first solid object

SFML and Debug Draw

Integrate SFML and Box2D

Mouse Grabbing

grab objects with the mouse

Physics Scene

Enable physics in our Scene

Rigid Body


create simple shapes


learn about fixtures


learn about bodies

Convex Shapes

create convex shapes

Moving Bodies

velocity, force and impulse

Movement Equations

Classical mechanics

Improving our Engine

Callback Classes

Contact Listener

Contact Filter

Destruction Listener

Improving our Engine


— Coming Soon —

Advanced Physics

— Coming Soon —

What's Next ?