cpConstraint

Opaque cpConstraint struct.

Members

Variables

a
cpBody* a;

The first body connected to this constraint.

b
cpBody* b;

The second body connected to this constraint.

data
cpDataPointer data;

User definable data pointer. Generally this points to your the game object class so you can access it when given a cpConstraint reference in a callback.

errorBias
cpFloat errorBias;

The rate at which joint error is corrected. Defaults to pow(1.0 - 0.1, 60.0) meaning that it will correct 10% of the error every 1/60th of a second.

klass
cpConstraintClass* klass;
Undocumented in source.
klass
cpConstraintClass* klass;
Undocumented in source.
maxBias
cpFloat maxBias;

The maximum rate at which joint error is corrected. Defaults to infinity.

maxForce
cpFloat maxForce;

The maximum force that this constraint is allowed to use. Defaults to infinity.

next_a
cpConstraint* next_a;
Undocumented in source.
next_a
cpConstraint* next_a;
Undocumented in source.
next_b
cpConstraint* next_b;
Undocumented in source.
next_b
cpConstraint* next_b;
Undocumented in source.
postSolve
cpConstraintPostSolveFunc postSolve;

Function called after the solver runs. Use the applied impulse to perform effects like breakable joints.

preSolve
cpConstraintPreSolveFunc preSolve;

Function called before the solver runs. Animate your joint anchors, update your motor torque, etc.

space
cpSpace* space;
Undocumented in source.
space
cpSpace* space;
Undocumented in source.

Meta