|
|
cpBool | cpConstraintIsPinJoint (const cpConstraint *constraint) |
| | Check if a constraint is a pin joint.
|
| |
|
cpPinJoint * | cpPinJointAlloc (void) |
| | Allocate a pin joint.
|
| |
|
cpPinJoint * | cpPinJointInit (cpPinJoint *joint, cpBody *a, cpBody *b, cpVect anchorA, cpVect anchorB) |
| | Initialize a pin joint.
|
| |
|
cpConstraint * | cpPinJointNew (cpBody *a, cpBody *b, cpVect anchorA, cpVect anchorB) |
| | Allocate and initialize a pin joint.
|
| |
|
cpVect | cpPinJointGetAnchorA (const cpConstraint *constraint) |
| | Get the location of the first anchor relative to the first body.
|
| |
|
void | cpPinJointSetAnchorA (cpConstraint *constraint, cpVect anchorA) |
| | Set the location of the first anchor relative to the first body.
|
| |
|
cpVect | cpPinJointGetAnchorB (const cpConstraint *constraint) |
| | Get the location of the second anchor relative to the second body.
|
| |
|
void | cpPinJointSetAnchorB (cpConstraint *constraint, cpVect anchorB) |
| | Set the location of the second anchor relative to the second body.
|
| |
|
cpFloat | cpPinJointGetDist (const cpConstraint *constraint) |
| | Get the distance the joint will maintain between the two anchors.
|
| |
|
void | cpPinJointSetDist (cpConstraint *constraint, cpFloat dist) |
| | Set the distance the joint will maintain between the two anchors.
|
| |