The cpArbiter struct controls pairs of colliding shapes. They are also used in conjuction with collision handler callbacks allowing you to retrieve information on the collision and control it. Collision begin event function callback type. Returning false from a begin callback causes the collision to be ignored until the the separate callback is called when the objects stop colliding.
Collision post-solve event function callback type.
Collision pre-solve event function callback type. Returning false from a pre-step callback causes the collision to be ignored until the next step.
Collision separate event function callback type.
@private
A macro shortcut for defining and retrieving the shapes from an arbiter.
Return the colliding bodies involved for this arbiter. The order of the cpSpace.collision_type the bodies are associated with values will match the order set when the collision handler was registered.
Return the colliding shapes involved for this arbiter. The order of their cpSpace.collision_type values will match the order set when the collision handler was registered.
A colliding pair of shapes.
@private
@private
A struct that wraps up the important collision data for an arbiter.
A macro shortcut for defining and retrieving the bodies from an arbiter.