Cyclone | Cyclone: cyclone::ParticleContact Class Reference |
#include <pcontacts.h>
Collaboration diagram for cyclone::ParticleContact:
Public Attributes | |
Particle * | particle [2] |
Holds the particles that are involved in the contact. | |
real | restitution |
Holds the normal restitution coefficient at the contact. | |
Vector3 | contactNormal |
Holds the direction of the contact in world coordinates.PContactIntro. | |
real | penetration |
Holds the depth of penetration at the contact.PContactInterpenetrationDef. | |
Vector3 | particleMovement [2] |
Holds the amount each particle is moved by during interpenetration resolution. | |
Protected Member Functions | |
void | resolve (real duration) |
Resolves this contact, for both velocity and interpenetration. | |
real | calculateSeparatingVelocity () const |
Calculates the separating velocity at this contact. |
Resolving a contact removes their interpenetration, and applies sufficient impulse to keep them apart. Colliding bodies may also rebound.
The contact has no callable functions, it just holds the contact details. To resolve a set of contacts, use the particle contact resolver class.
|
Calculates the separating velocity at this contact.
|
|
Resolves this contact, for both velocity and interpenetration.
|
|
Holds the direction of the contact in world coordinates.PContactIntro.
|
|
Holds the particles that are involved in the contact. The second of these can be NULL, for contacts with the scenery. |
|
Holds the amount each particle is moved by during interpenetration resolution.
|
|
Holds the depth of penetration at the contact.PContactInterpenetrationDef.
|
|
Holds the normal restitution coefficient at the contact.
|
© 2000-2003 Icosagon. All Rights Reserved.
Distributed under licence.
Cyclone Version 2.0.5 (Documentation generated Fri Nov 10 20:44:24 2006). |