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

Functions

cpBool cpConstraintIsSlideJoint (const cpConstraint *constraint)
 Check if a constraint is a slide joint.
 
cpSlideJointcpSlideJointAlloc (void)
 Allocate a slide joint.
 
cpSlideJointcpSlideJointInit (cpSlideJoint *joint, cpBody *a, cpBody *b, cpVect anchorA, cpVect anchorB, cpFloat min, cpFloat max)
 Initialize a slide joint.
 
cpConstraintcpSlideJointNew (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.
 

Detailed Description