dchip.cpArbiter

Members

Aliases

cpCollisionBeginFunc
alias cpCollisionBeginFunc = cpBool function(cpArbiter* arb, cpSpace* space, void* data)

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.

cpCollisionPostSolveFunc
alias cpCollisionPostSolveFunc = void function(cpArbiter* arb, cpSpace* space, void* data)

Collision post-solve event function callback type.

cpCollisionPreSolveFunc
alias cpCollisionPreSolveFunc = cpBool function(cpArbiter* arb, cpSpace* space, void* data)

Collision pre-solve event function callback type. Returning false from a pre-step callback causes the collision to be ignored until the next step.

cpCollisionSeparateFunc
alias cpCollisionSeparateFunc = void function(cpArbiter* arb, cpSpace* space, void* data)

Collision separate event function callback type.

Enums

cpArbiterState
enum cpArbiterState

@private

Functions

CP_ARBITER_GET_SHAPES
string CP_ARBITER_GET_SHAPES()

A macro shortcut for defining and retrieving the shapes from an arbiter.

cpArbiterGetBodies
void cpArbiterGetBodies(const cpArbiter* arb, cpBody** a, cpBody** b)

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.

cpArbiterGetShapes
void cpArbiterGetShapes(const cpArbiter* arb, cpShape** a, cpShape** b)

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.

Mixins

__anonymous
mixin _ExportEnumMembers!cpArbiterState

Structs

cpArbiter
struct cpArbiter

A colliding pair of shapes.

cpArbiterThread
struct cpArbiterThread

@private

cpCollisionHandler
struct cpCollisionHandler

@private

cpContactPointSet
struct cpContactPointSet

A struct that wraps up the important collision data for an arbiter.

Templates

CP_ARBITER_GET_BODIES
template CP_ARBITER_GET_BODIES(string arb, string a, string b)

A macro shortcut for defining and retrieving the bodies from an arbiter.

Meta