ChipmunkArbiter
.GetShapes() function GetShapes(shapeA : out ChipmunkShape
, shapeB : out ChipmunkShape
) : void
shapeA | Out parameter for the first shape in the colliding pair. The shape's collision type will match the first type defined by the collision handler. |
shapeB | Out parameter for the second shape in the colliding pair. The shape's collision type will match the second type defined by the collision handler. |
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"
.