Learn Box2D

Learn how to use the Box2D physics library

Code Repository

Get Started

Introduction

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

Shapes

create simple shapes

Fixtures

learn about fixtures

Bodies

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

Joints

— Coming Soon —

Advanced Physics

— Coming Soon —

What's Next ?