Cyclone Cyclone: cyclone::ParticleCableConstraint Class Reference

cyclone::ParticleCableConstraint Class Reference

Cables link a particle to an anchor point, generating a contact if they stray too far apart. More...

#include <plinks.h>

Inheritance diagram for cyclone::ParticleCableConstraint:

Inheritance graph
[legend]
Collaboration diagram for cyclone::ParticleCableConstraint:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual unsigned addContact (ParticleContact *contact, unsigned limit) const
 Fills the given contact structure with the contact needed to keep the cable from over-extending.

Public Attributes

real maxLength
 Holds the maximum length of the cable.
real restitution
 Holds the restitution (bounciness) of the cable.

Detailed Description

Cables link a particle to an anchor point, generating a contact if they stray too far apart.


Member Function Documentation

virtual unsigned cyclone::ParticleCableConstraint::addContact ParticleContact contact,
unsigned  limit
const [virtual]
 

Fills the given contact structure with the contact needed to keep the cable from over-extending.

Implements cyclone::ParticleConstraint.


Member Data Documentation

real cyclone::ParticleCableConstraint::maxLength
 

Holds the maximum length of the cable.

real cyclone::ParticleCableConstraint::restitution
 

Holds the restitution (bounciness) of the cable.


The documentation for this class was generated from the following file: