Cyclone | Cyclone: cyclone::ParticleContactResolver Class Reference |
#include <pcontacts.h>
Public Member Functions | |
ParticleContactResolver (unsigned iterations) | |
Creates a new contact resolver. | |
void | setIterations (unsigned iterations) |
Sets the number of iterations that can be used. | |
void | resolveContacts (ParticleContact *contactArray, unsigned numContacts, real duration) |
Resolves a set of particle contacts for both penetration and velocity. | |
Protected Attributes | |
unsigned | iterations |
Holds the number of iterations allowed. | |
unsigned | iterationsUsed |
This is a performance tracking value - we keep a record of the actual number of iterations used. |
One resolver instance can be shared for the whole simulation.
|
Creates a new contact resolver.
|
|
Resolves a set of particle contacts for both penetration and velocity. /<PCResolverResolve Contacts that cannot interact with each other should be passed to separate calls to resolveContacts, as the resolution algorithm takes much longer for lots of contacts than it does for the same number of contacts in small sets.
|
|
Sets the number of iterations that can be used.
|
|
Holds the number of iterations allowed.
|
|
This is a performance tracking value - we keep a record of the actual number of iterations used.
|
© 2000-2003 Icosagon. All Rights Reserved.
Distributed under licence.
Cyclone Version 2.0.5 (Documentation generated Fri Nov 10 20:44:24 2006). |