Manual:

Tutorials:

API:

ChipmunkArbiter

Struct

A ChipmunkArbiter contains collision information for two colliding @ChipmunkShapes@. You cannot create them and only receive them in @ChipmunkCollisionManager@ methods or @ChipmunkBody.EachArbiter()@ callbacks.


Variables


contactCountThe number of contact points between the colliding shapes (Read Only).
impulseThe size and direction of the impulse applied by this arbiter (Read Only).
impulseWithFrictionSame as the impulse, but also includes the impulse from friction (Read Only).
kineticEnergyKinetic energy lost to heat/deformation during the collision (Read Only).
elasticityModify the computed elasticity of the colliding shapes.
frictionModify the computed friction of the colliding shapes.
surfaceVelocityModify the computed relative surface velocity of the colliding shapes.
isFirstContactReturns true if this is the first fixed step where the objects were colliding (Read Only).


Functions:


GetShapesGet references to the two colliding shapes.
IgnoreBegin ignoring this colliding pair of shapes after the current fixed step.
GetPointGet the position of the ith contact point.
GetNormalGet the normal of the ith contact point.
GetDepthGet the penetration depth (negative value) of the ith contact point.