Chipmunk2D Pro API Reference  7.0.0
 All Classes Functions Variables Typedefs Enumerations Enumerator Properties Groups Pages
Functions
cpPinJoint

Functions

cpBool cpConstraintIsPinJoint (const cpConstraint *constraint)
 Check if a constraint is a pin joint.
 
cpPinJointcpPinJointAlloc (void)
 Allocate a pin joint.
 
cpPinJointcpPinJointInit (cpPinJoint *joint, cpBody *a, cpBody *b, cpVect anchorA, cpVect anchorB)
 Initialize a pin joint.
 
cpConstraintcpPinJointNew (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.
 

Detailed Description