World

The world as seen by d-collide and thus by the collision detection algorithms is represented by the dcollide::World class. Consequently this class is the most central class of this library.

The dcollide::World class provides methods for collision detection (see dcollide::World::calculateAllCollisions) and controls the algorithms used by the different phases. It is possible to change the algorithms by passing the World-constructor a WorldParameters object.

A world is usually created with certain parameters in particular the maximal size of the world. These parameters are specified using the dcollide::WorldParameters class, which is also intended to provide means to influence the choice of algorithms used by the library.

Other than managing the collision detection used, the dcollide::World class is primarily a container for dcollide::Proxy objects and also controls their creation (see dcollide::World::createProxy). A dcollide::Proxy is an object in the 3D-world that can collide with other objects (i.e. with other proxies), so for example a car and a wall would be proxies (usually two different proxies). See Proxies and the class dcollide::Proxy for details.