b2Contact Class Reference

The class manages contact between two shapes. More...

Inherited by b2CircleContact, b2NullContact, b2PolyAndCircleContact, and b2PolygonContact.

List of all members.

Public Member Functions

virtual b2Manifold * GetManifolds ()=0
 Get the manifold array.
int32 GetManifoldCount () const
 Get the number of manifolds.
bool IsSolid () const
 Is this contact solid?
b2Contact * GetNext ()
 Get the next contact in the world's contact list.
b2Shape * GetShape1 ()
 Get the first shape in this contact.
b2Shape * GetShape2 ()
 Get the second shape in this contact.


Detailed Description

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.


Member Function Documentation

int32 b2Contact::GetManifoldCount (  )  const [inline]

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 b2Contact::IsSolid (  )  const [inline]

Is this contact solid?

Returns:
true if this contact should generate a response.


The documentation for this class was generated from the following files:
Generated on Fri Mar 7 23:58:18 2008 for Box2D by  doxygen 1.5.4