|
cpBool | cpConstraintIsSlideJoint (const cpConstraint *constraint) |
| Check if a constraint is a slide joint.
|
|
cpSlideJoint * | cpSlideJointAlloc (void) |
| Allocate a slide joint.
|
|
cpSlideJoint * | cpSlideJointInit (cpSlideJoint *joint, cpBody *a, cpBody *b, cpVect anchorA, cpVect anchorB, cpFloat min, cpFloat max) |
| Initialize a slide joint.
|
|
cpConstraint * | cpSlideJointNew (cpBody *a, cpBody *b, cpVect anchorA, cpVect anchorB, cpFloat min, cpFloat max) |
| Allocate and initialize a slide joint.
|
|
cpVect | cpSlideJointGetAnchorA (const cpConstraint *constraint) |
| Get the location of the first anchor relative to the first body.
|
|
void | cpSlideJointSetAnchorA (cpConstraint *constraint, cpVect anchorA) |
| Set the location of the first anchor relative to the first body.
|
|
cpVect | cpSlideJointGetAnchorB (const cpConstraint *constraint) |
| Get the location of the second anchor relative to the second body.
|
|
void | cpSlideJointSetAnchorB (cpConstraint *constraint, cpVect anchorB) |
| Set the location of the second anchor relative to the second body.
|
|
cpFloat | cpSlideJointGetMin (const cpConstraint *constraint) |
| Get the minimum distance the joint will maintain between the two anchors.
|
|
void | cpSlideJointSetMin (cpConstraint *constraint, cpFloat min) |
| Set the minimum distance the joint will maintain between the two anchors.
|
|
cpFloat | cpSlideJointGetMax (const cpConstraint *constraint) |
| Get the maximum distance the joint will maintain between the two anchors.
|
|
void | cpSlideJointSetMax (cpConstraint *constraint, cpFloat max) |
| Set the maximum distance the joint will maintain between the two anchors.
|
|