#include <b2Contact.h>
Inherited by b2ChainAndCircleContact, b2ChainAndPolygonContact, b2CircleContact, b2EdgeAndCircleContact, b2EdgeAndPolygonContact, b2PolygonAndCircleContact, and b2PolygonContact.
|
enum | {
e_islandFlag = 0x0001,
e_touchingFlag = 0x0002,
e_enabledFlag = 0x0004,
e_filterFlag = 0x0008,
e_bulletHitFlag = 0x0010,
e_toiFlag = 0x0020
} |
|
|
static void | AddType (b2ContactCreateFcn *createFcn, b2ContactDestroyFcn *destroyFcn, b2Shape::Type typeA, b2Shape::Type typeB) |
|
static void | InitializeRegisters () |
|
static b2Contact * | Create (b2Fixture *fixtureA, int32 indexA, b2Fixture *fixtureB, int32 indexB, b2BlockAllocator *allocator) |
|
static void | Destroy (b2Contact *contact, b2Shape::Type typeA, b2Shape::Type typeB, b2BlockAllocator *allocator) |
|
static void | Destroy (b2Contact *contact, b2BlockAllocator *allocator) |
|
|
uint32 | m_flags |
|
b2Contact * | m_prev |
|
b2Contact * | m_next |
|
b2ContactEdge | m_nodeA |
|
b2ContactEdge | m_nodeB |
|
b2Fixture * | m_fixtureA |
|
b2Fixture * | m_fixtureB |
|
int32 | m_indexA |
|
int32 | m_indexB |
|
b2Manifold | m_manifold |
|
int32 | m_toiCount |
|
float32 | m_toi |
|
float32 | m_friction |
|
float32 | m_restitution |
|
float32 | m_tangentSpeed |
|
|
static b2ContactRegister | s_registers [b2Shape::e_typeCount][b2Shape::e_typeCount] |
|
static bool | s_initialized = false |
|
|
class | b2ContactManager |
|
class | b2World |
|
class | b2Body |
|
class | b2Fixture |
|
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.
Get the contact manifold. Do not modify the manifold unless you understand the internals of Box2D.
void b2Contact::SetEnabled |
( |
bool |
flag | ) |
|
|
inline |
Enable/disable this contact. This can be used inside the pre-solve contact listener. The contact is only disabled for the current time step (or sub-step in continuous collisions).
void b2Contact::SetFriction |
( |
float32 |
friction | ) |
|
|
inline |
void b2Contact::SetRestitution |
( |
float32 |
restitution | ) |
|
|
inline |
The documentation for this class was generated from the following files: