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

Functions

CP_EXPORT cpBool cpConstraintIsPivotJoint (const cpConstraint *constraint)
 Check if a constraint is a slide joint.
 
CP_EXPORT cpPivotJointcpPivotJointAlloc (void)
 Allocate a pivot joint.
 
CP_EXPORT cpPivotJointcpPivotJointInit (cpPivotJoint *joint, cpBody *a, cpBody *b, cpVect anchorA, cpVect anchorB)
 Initialize a pivot joint.
 
CP_EXPORT cpConstraintcpPivotJointNew (cpBody *a, cpBody *b, cpVect pivot)
 Allocate and initialize a pivot joint.
 
CP_EXPORT cpConstraintcpPivotJointNew2 (cpBody *a, cpBody *b, cpVect anchorA, cpVect anchorB)
 Allocate and initialize a pivot joint with specific anchors.
 
CP_EXPORT cpVect cpPivotJointGetAnchorA (const cpConstraint *constraint)
 Get the location of the first anchor relative to the first body.
 
CP_EXPORT void cpPivotJointSetAnchorA (cpConstraint *constraint, cpVect anchorA)
 Set the location of the first anchor relative to the first body.
 
CP_EXPORT cpVect cpPivotJointGetAnchorB (const cpConstraint *constraint)
 Get the location of the second anchor relative to the second body.
 
CP_EXPORT void cpPivotJointSetAnchorB (cpConstraint *constraint, cpVect anchorB)
 Set the location of the second anchor relative to the second body.
 

Detailed Description