29 #define CP_MAX_CONTACTS_PER_ARBITER 2 70 #define CP_ARBITER_GET_SHAPES(__arb__, __a__, __b__) cpShape *__a__, *__b__; cpArbiterGetShapes(__arb__, &__a__, &__b__); 78 #define CP_ARBITER_GET_BODIES(__arb__, __a__, __b__) cpBody *__a__, *__b__; cpArbiterGetBodies(__arb__, &__a__, &__b__); 95 }
points[CP_MAX_CONTACTS_PER_ARBITER];
Definition: chipmunk_private.h:641
void * cpDataPointer
Type used for user data pointers.
Definition: chipmunk_types.h:216
cpFloat cpArbiterGetFriction(const cpArbiter *arb)
Get the friction coefficient that will be applied to the pair of colliding objects.
cpBool cpArbiterCallWildcardPreSolveA(cpArbiter *arb, cpSpace *space)
If you want a custom callback to invoke the wildcard callback for the first collision type...
Definition: chipmunk_private.h:80
Definition: chipmunk_private.h:256
cpVect cpArbiterGetPointB(const cpArbiter *arb, int i)
Get the position of the ith contact point on the surface of the second shape.
unsigned char cpBool
Chipmunk's boolean type.
Definition: chipmunk_types.h:199
cpFloat cpArbiterTotalKE(const cpArbiter *arb)
Calculate the amount of energy lost in a collision including static, but not dynamic friction...
void cpArbiterSetFriction(cpArbiter *arb, cpFloat friction)
Override the friction coefficient that will be applied to the pair of colliding objects.
void cpArbiterCallWildcardPostSolveB(cpArbiter *arb, cpSpace *space)
If you want a custom callback to invoke the wildcard callback for the second collision type...
void cpArbiterCallWildcardSeparateA(cpArbiter *arb, cpSpace *space)
If you want a custom callback to invoke the wildcard callback for the first collision type...
cpContactPointSet cpArbiterGetContactPointSet(const cpArbiter *arb)
Return a contact set from an arbiter.
cpBool cpArbiterCallWildcardBeginA(cpArbiter *arb, cpSpace *space)
If you want a custom callback to invoke the wildcard callback for the first collision type...
void cpArbiterGetShapes(const cpArbiter *arb, cpShape **a, cpShape **b)
Return the colliding shapes involved for this arbiter.
double cpFloat
Chipmunk's floating point type.
Definition: chipmunk_types.h:83
cpBool cpArbiterIsFirstContact(const cpArbiter *arb)
Returns true if this is the first step a pair of objects started colliding.
cpBool cpArbiterCallWildcardPreSolveB(cpArbiter *arb, cpSpace *space)
If you want a custom callback to invoke the wildcard callback for the second collision type...
cpFloat cpArbiterGetDepth(const cpArbiter *arb, int i)
Get the depth of the ith contact point.
int cpArbiterGetCount(const cpArbiter *arb)
Get the number of contact points for this arbiter.
Definition: chipmunk_types.h:271
cpVect cpArbiterGetPointA(const cpArbiter *arb, int i)
Get the position of the ith contact point on the surface of the first shape.
void cpArbiterSetUserData(cpArbiter *arb, cpDataPointer userData)
Set a user data point associated with this pair of colliding objects.
cpBool cpArbiterCallWildcardBeginB(cpArbiter *arb, cpSpace *space)
If you want a custom callback to invoke the wildcard callback for the second collision type...
void cpArbiterSetRestitution(cpArbiter *arb, cpFloat restitution)
Override the restitution (elasticity) that will be applied to the pair of colliding objects...
cpFloat cpArbiterGetRestitution(const cpArbiter *arb)
Get the restitution (elasticity) that will be applied to the pair of colliding objects.
Definition: chipmunk_private.h:185
void cpArbiterCallWildcardSeparateB(cpArbiter *arb, cpSpace *space)
If you want a custom callback to invoke the wildcard callback for the second collision type...
cpVect cpArbiterTotalImpulse(const cpArbiter *arb)
Calculate the total impulse including the friction that was applied by this arbiter.
void cpArbiterSetContactPointSet(cpArbiter *arb, cpContactPointSet *set)
Replace the contact point set for an arbiter.
cpBool cpArbiterIgnore(cpArbiter *arb)
Mark a collision pair to be ignored until the two objects separate.
cpDataPointer cpArbiterGetUserData(const cpArbiter *arb)
Get the user data pointer associated with this pair of colliding objects.
cpBool cpArbiterIsRemoval(const cpArbiter *arb)
Returns true if the separate callback is due to a shape being removed from the space.
void cpArbiterGetBodies(const cpArbiter *arb, cpBody **a, cpBody **b)
Return the colliding bodies involved for this arbiter.
void cpArbiterCallWildcardPostSolveA(cpArbiter *arb, cpSpace *space)
If you want a custom callback to invoke the wildcard callback for the first collision type...
cpVect cpArbiterGetNormal(const cpArbiter *arb)
Get the normal of the collision.