ChipmunkArbiter
Struct
A ChipmunkArbiter contains collision information for two colliding ChipmunkShape
objects. You cannot create them and only receive them in ChipmunkCollisionManager
methods or ChipmunkBody.EachArbiter()
callbacks.
Variables
contactCount | The number of contact points between the colliding shapes (Read Only). |
impulse | The size and direction of the impulse applied by this arbiter (Read Only). |
impulseWithFriction | Same as the impulse, but also includes the impulse from friction (Read Only). |
kineticEnergy | Kinetic energy lost to heat/deformation during the collision (Read Only). |
elasticity | Modify the computed elasticity of the colliding shapes. |
friction | Modify the computed friction of the colliding shapes. |
surfaceVelocity | Modify the computed relative surface velocity of the colliding shapes. |
isFirstContact | Returns true if this is the first fixed step where the objects were colliding (Read Only). |
Functions
GetShapes | Get references to the two colliding shapes. |
Ignore | Begin ignoring this colliding pair of shapes after the current fixed step. |
GetPoint | Get the position of the ith contact point. |
GetNormal | Get the normal of the ith contact point. |
GetDepth | Get the penetration depth (negative value) of the ith contact point. |