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

Functions

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

Detailed Description