ABSTRACT

This chapter describes how to download and install Box2D for use with Visual Studio 10. It provides the readers an overview of the structure and parts of Box2D. The chapter deals with a simple Box2D application to understand what Box2D can do. It also provides some exercises for the reader. The four steps that are needed to go through to use Box2D in game are to download Box2D, to install the Box2D header files, to change the Visual Studio code generation settings, and to build and install the Box2D library file Box2D.lib. Box2D provides 2D game physics programmers with a Physics World that handles physics calculations for their Object World. The Box2D tuned to work well for distance units between 0.1 and 10.0. This means that measure things in Physics World in different units than 2D game physics programmers use for Render World.