Manual:

Tutorials:

API:

ChipmunkArbiter.GetShapes()

function GetShapes(shapeA : out ChipmunkShape, shapeB : out ChipmunkShape) : void

Parameters:


shapeAOut parameter for the first shape in the colliding pair. The shape's collision type will match the first type defined by the collision handler.
shapeBOut parameter for the second shape in the colliding pair. The shape's collision type will match the second type defined by the collision handler.

Description

Get references to the two colliding shapes.

The collision types will match the order of the @ChipmunkCollisionManager@ method. Say you defined a ChipmunkCollisionManager method "ChipmunkBegin_player_enemy". Then you will find that shapeA.collisionType == "player" and shapeB.collisionType == "enemy".