blaze.dynamics.contact.contact



struct ContactPoint ;
This structure is used to report contact points.

Shape shape1 ;
< the first shape

Shape shape2 ;
< the second shape

bVec2 position ;
< position in world coordinates

bVec2 velocity ;
< velocity of point on body2 relative to point on body1 (pre-solver)

bVec2 normal ;
< points from shape1 to shape2

float separation ;
< the separation is negative when shapes are touching

float friction ;
< the combined friction coefficient

float restitution ;
< the combined restitution coefficient

ContactID id ;
< the contact id identifies the features in contact

struct ContactResult ;
This structure is used to report contact point results.

Shape shape1 ;
< the first shape

Shape shape2 ;
< the second shape

bVec2 position ;
< position in world coordinates

bVec2 normal ;
< points from shape1 to shape2

float normalImpulse ;
< the normal impulse applied to body2

float tangentImpulse ;
< the tangent impulse applied to body2

ContactID id ;
< the contact id identifies the features in contact

class ContactEdge ;
A contact edge is used to connect bodies and contacts together

in a contact graph where each body is a node and each contact

is an edge. A contact edge belongs to a doubly linked list

maintained in each attached body. Each contact has two contact

nodes, one for each attached body.

Body other ;
< provides quick access to the other body attached.

Contact contact ;
< the contact

ContactEdge prev ;
< the previous contact edge in the body's contact list

ContactEdge next ;
< the next contact edge in the body's contact list

class Contact ;
The class manages contact between two shapes. A contact exists for each overlapping

AABB in the broad-phase (except if filtered). Therefore a contact object may exist

that has no contact points.

Manifold [] manifolds ;
Contact manifold

int manifoldCount ();
Get the number of manifolds. This is 0 or 1 between convex shapes.

This may be greater than 1 for convex-vs-concave shapes. Each

manifold holds up to two contact points with a shared contact normal.

bool isSolid ();
Is this contact solid?

@return true if this contact should generate a response.

Shape shape1 ();
Get the first shape in this contact.

Shape shape2 ();
Get the second shape in this contact.

Page was generated with on Tue Feb 10 19:13:11 2009