Chipmunk2D Pro API Reference  7.0.2
 All Classes Functions Variables Typedefs Enumerations Enumerator Properties Groups Pages
Functions
cpSlideJoint

Functions

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

Detailed Description