ABSTRACT

This chapter describes the Common Module, since it is a useful toolkit that can save 2D game physics programmers lots of programming time reinventing the wheel. The Common Module contains code for some low-level things such as memory allocation and a math library. Code and header files for the Common Module are found in folder Common. The chapter provides an introduction to the Collision Module at a deep enough level for 2D game physics programmers to get started writing a game. The Collision Module is contained in folder Collision. It includes definitions for shapes and functions that operate on them, broad-phase collision detection, and a data structure called a dynamic tree. The chapter introduces the Dynamics Module. The Dynamics Module provides the Physics World and the things that appear in it.