5Getting Started

This chapter is divided into three sections that help you get started with Box2D. Section 5.1 describes how to download and install Box2D for use with Visual Studio 10. Section 5.2 gives you an overview of the structure and parts of Box2D. Section 5.4 starts you off with a simple Box2D application to whet your appetite for what Box2D can do. We end in Section 5.5 with some exercises for the reader.

Whether you read this chapter or not is up to you. If you’re a beginner, you should definitely read it. If you’re advanced, perhaps you should at least skim through it.

5.1 Download and Set Up Box2D

The four steps that you need to go through to use Box2D in your game are

  1. download Box2D,
  2. install the Box2D header files,
  3. change the ...

Get Introduction to Game Physics with Box2D now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.