Inherited by b2CircleContact, b2NullContact, b2PolyAndCircleContact, and b2PolygonContact.
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. |
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.
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?