Cyclone Cyclone: cyclone::CollisionData Struct Reference

cyclone::CollisionData Struct Reference

A helper structure that contains information for the detector to use in building its contact data. More...

#include <collide_fine.h>

Collaboration diagram for cyclone::CollisionData:

Collaboration graph
[legend]
List of all members.

Public Member Functions

bool hasMoreContacts ()
 Checks if there are more contacts available in the contact data.
void reset (unsigned maxContacts)
 Resets the data so that it has no used contacts recorded.
void addContacts (unsigned count)
 Notifies the data that the given number of contacts have been added.

Public Attributes

ContactcontactArray
 Holds the base of the collision data: the first contact in the array.
Contactcontacts
 Holds the contact array to write into.
int contactsLeft
 Holds the maximum number of contacts the array can take.CollisionDataIntro.
unsigned contactCount
 Holds the number of contacts found so far.
real friction
 Holds the friction value to write into any collisions.
real restitution
 Holds the restitution value to write into any collisions.
real tolerance
 Holds the collision tolerance, even uncolliding objects this close should have collisions generated.

Detailed Description

A helper structure that contains information for the detector to use in building its contact data.


Member Function Documentation

void cyclone::CollisionData::addContacts unsigned  count  )  [inline]
 

Notifies the data that the given number of contacts have been added.

bool cyclone::CollisionData::hasMoreContacts  )  [inline]
 

Checks if there are more contacts available in the contact data.

void cyclone::CollisionData::reset unsigned  maxContacts  )  [inline]
 

Resets the data so that it has no used contacts recorded.


Member Data Documentation

Contact* cyclone::CollisionData::contactArray
 

Holds the base of the collision data: the first contact in the array.

This is used so that the contact pointer (below) can be incremented each time a contact is detected, while this pointer points to the first contact found.

unsigned cyclone::CollisionData::contactCount
 

Holds the number of contacts found so far.

Contact* cyclone::CollisionData::contacts
 

Holds the contact array to write into.

int cyclone::CollisionData::contactsLeft
 

Holds the maximum number of contacts the array can take.CollisionDataIntro.

real cyclone::CollisionData::friction
 

Holds the friction value to write into any collisions.

real cyclone::CollisionData::restitution
 

Holds the restitution value to write into any collisions.

real cyclone::CollisionData::tolerance
 

Holds the collision tolerance, even uncolliding objects this close should have collisions generated.


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