|
cpBool | cpConstraintIsRatchetJoint (const cpConstraint *constraint) |
| Check if a constraint is a damped rotary springs.
|
|
cpRatchetJoint * | cpRatchetJointAlloc (void) |
| Allocate a ratchet joint.
|
|
cpRatchetJoint * | cpRatchetJointInit (cpRatchetJoint *joint, cpBody *a, cpBody *b, cpFloat phase, cpFloat ratchet) |
| Initialize a ratched joint.
|
|
cpConstraint * | cpRatchetJointNew (cpBody *a, cpBody *b, cpFloat phase, cpFloat ratchet) |
| Allocate and initialize a ratchet joint.
|
|
cpFloat | cpRatchetJointGetAngle (const cpConstraint *constraint) |
| Get the angle of the current ratchet tooth.
|
|
void | cpRatchetJointSetAngle (cpConstraint *constraint, cpFloat angle) |
| Set the angle of the current ratchet tooth.
|
|
cpFloat | cpRatchetJointGetPhase (const cpConstraint *constraint) |
| Get the phase offset of the ratchet.
|
|
void | cpRatchetJointSetPhase (cpConstraint *constraint, cpFloat phase) |
| Get the phase offset of the ratchet.
|
|
cpFloat | cpRatchetJointGetRatchet (const cpConstraint *constraint) |
| Get the angular distance of each ratchet.
|
|
void | cpRatchetJointSetRatchet (cpConstraint *constraint, cpFloat ratchet) |
| Set the angular distance of each ratchet.
|
|