Cyclone | Cyclone: cyclone::ParticleConstraint Class Reference |
#include <plinks.h>
Inheritance diagram for cyclone::ParticleConstraint:
Public Member Functions | |
virtual unsigned | addContact (ParticleContact *contact, unsigned limit) const =0 |
Geneates the contacts to keep this link from being violated. | |
Public Attributes | |
Particle * | particle |
Holds the particles connected by this constraint. | |
Vector3 | anchor |
The point to which the particle is anchored. | |
Protected Member Functions | |
real | currentLength () const |
Returns the current length of the link. |
|
Geneates the contacts to keep this link from being violated. This class can only ever generate a single contact, so the pointer can be a pointer to a single element, the limit parameter is assumed to be at least one (zero isn't valid) and the return value is either 0, if the cable wasn't over-extended, or one if a contact was needed. NB: This method is declared in the same way (as pure virtual) in the parent class, but is replicated here for documentation purposes. Implements cyclone::ParticleContactGenerator. Implemented in cyclone::ParticleCableConstraint, and cyclone::ParticleRodConstraint. |
|
Returns the current length of the link.
|
|
The point to which the particle is anchored.
|
|
Holds the particles connected by this constraint.
|
© 2000-2003 Icosagon. All Rights Reserved.
Distributed under licence.
Cyclone Version 2.0.5 (Documentation generated Fri Nov 10 20:44:28 2006). |