Cyclone | Cyclone: cyclone::ForceRegistry Class Reference |
#include <fgen.h>
Public Member Functions | |
void | add (RigidBody *body, ForceGenerator *fg) |
Registers the given force generator to apply to the given body. | |
void | remove (RigidBody *body, ForceGenerator *fg) |
Removes the given registered pair from the registry. | |
void | clear () |
Clears all registrations from the registry. | |
void | updateForces (real duration) |
Calls all the force generators to update the forces of their corresponding bodies. | |
Protected Types | |
typedef std::vector< ForceRegistration > | Registry |
Holds the list of registrations. | |
Protected Attributes | |
Registry | registrations |
Classes | |
struct | ForceRegistration |
Keeps track of one force generator and the body it applies to. More... |
|
Holds the list of registrations.
|
|
Registers the given force generator to apply to the given body.
|
|
Clears all registrations from the registry. This will not delete the bodies or the force generators themselves, just the records of their connection. |
|
Removes the given registered pair from the registry. If the pair is not registered, this method will have no effect. |
|
Calls all the force generators to update the forces of their corresponding bodies.
|
|
|
© 2000-2003 Icosagon. All Rights Reserved.
Distributed under licence.
Cyclone Version 2.0.5 (Documentation generated Fri Nov 10 20:44:23 2006). |