About this Box2D tutorial series

Learn Box2D with the Nero Game Engine

The Nero Game Engine uses Box2D for its physics. This tutorial series will help you understand how Box2D works. If you do not intend to use the Nero Game Engine you can still follow this tutorial. The Engine SDK is used only so you do not have to compile anything, which means you can start learning Box2D right away.

What's Box2D

Box2D is a 2D Physics Engine. It can simulate the behavior of rigid bodies inside a world affected by gravity. In addition to simulating the physical world, Box2D is a great library to handle Collisions in your video game, this is often the main reason people choose to use Box2D. Box2D tries to be realistic in its physics simulation, since a game doesn’t have to be realistic to be fun, some people may be reluctant at using it. The choice is yours !?

What will you be Learning

In this tutorial series, I will share with you everything I know about Box2D. We’ll learn how to create Bodies and Joints, how to simulate the physical world, how to handle collisions, ray tracing and more. By itself Box2D doesn’t have anything graphics, so you will also learn how to integrate SFML and Box2D in order to visualize and interact with the physical world.

Create Bodies and Joints

Simulate the Physical World

Collisions and Queries Callbacks

Forces, Impulses and More

Get Ready

We’ll be using the Nero Game Engine SDK (Nero Game Engine v1.0.x). Learn how to Install the Engine SDK here. Once it’s done create a simple C++ Hello world program. The code is shown below.

#include <iostream>
using namespace std;
int main()
    cout << “Hello world!” << endl;
    return 0;

You have successfully subscribed to the newsletter

There was an error while trying to send your request. Please try again.

Nero Games will use the information you provide on this form to be in touch with you and to provide updates and marketing.