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

Functions

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

Detailed Description