cpArbiter

A colliding pair of shapes.

struct cpArbiter {
cpShape* a;
cpShape* a;
cpShape* b;
cpShape* b;
cpBody* body_a;
cpBody* body_a;
cpBody* body_b;
cpBody* body_b;
cpArbiterThread thread_a;
cpArbiterThread thread_a;
cpArbiterThread thread_b;
cpArbiterThread thread_b;
int numContacts;
int numContacts;
cpContact* contacts;
cpContact* contacts;
cpTimestamp stamp;
cpTimestamp stamp;
cpCollisionHandler* handler;
cpCollisionHandler* handler;
cpBool swappedColl;
cpBool swappedColl;
cpArbiterState state;
cpArbiterState state;
}

Members

Variables

data
cpDataPointer data;

User definable data pointer. The value will persist for the pair of shapes until the separate() callback is called. NOTE: If you need to clean up this pointer, you should implement the separate() callback to do it.

e
cpFloat e;

Calculated value to use for the elasticity coefficient. Override in a pre-solve collision handler for custom behavior.

surface_vr
cpVect surface_vr;

Calculated value to use for applying surface velocities. Override in a pre-solve collision handler for custom behavior.

u
cpFloat u;

Calculated value to use for the friction coefficient. Override in a pre-solve collision handler for custom behavior.

Meta