Box2D: b2Contact Class Reference

Box2D

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 b2ManifoldGetManifolds ()=0
 Get the manifold array.
int32 GetManifoldCount () const
 Get the number of manifolds.
bool IsSolid () const
 Is this contact solid?
b2ContactGetNext ()
 Get the next contact in the world's contact list.
b2ShapeGetShape1 ()
 Get the first shape in this contact.
b2ShapeGetShape2 ()
 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:
  • b2Contact.h
  • b2Contact.cpp

Generated on Sun Apr 13 15:21:27 2008 for Box2D by  doxygen 1.5.4