Cyclone | Cyclone: cyclone::World Class Reference |
#include <world.h>
Collaboration diagram for cyclone::World:
Public Member Functions | |
World (unsigned maxContacts, unsigned iterations=0) | |
Creates a new simulator that can handle up to the given number of contacts per frame. | |
~World () | |
unsigned | generateContacts () |
Calls each of the registered contact generators to report their contacts. | |
void | runPhysics (real duration) |
Processes all the physics for the world.WorldRunPhysics. | |
void | startFrame () |
Initialises the world for a simulation frame.WorldStartFrame. | |
Classes | |
struct | BodyRegistration |
Holds a single rigid body in a linked list of bodies. | |
struct | ContactGenRegistration |
Holds one contact generators in a linked list. |
It keeps track of a set of rigid bodies, and provides the means to update them all.
|
Creates a new simulator that can handle up to the given number of contacts per frame. You can also optionally give a number of contact-resolution iterations to use. If you don't give a number of iterations, then four times the number of detected contacts will be used for each frame. |
|
|
|
Calls each of the registered contact generators to report their contacts. Returns the number of generated contacts. |
|
Processes all the physics for the world.WorldRunPhysics.
|
|
Initialises the world for a simulation frame.WorldStartFrame. This clears the force and torque accumulators for bodies in the world. After calling this, the bodies can have their forces and torques for this frame added. |
© 2000-2003 Icosagon. All Rights Reserved.
Distributed under licence.
Cyclone Version 2.0.5 (Documentation generated Fri Nov 10 20:44:29 2006). |