Chipmunk2D Pro API Reference  7.0.1
 All Classes Functions Variables Typedefs Enumerations Enumerator Properties Groups Pages
Functions
cpGrooveJoint

Functions

CP_EXPORT cpBool cpConstraintIsGrooveJoint (const cpConstraint *constraint)
 Check if a constraint is a slide joint.
 
CP_EXPORT cpGrooveJointcpGrooveJointAlloc (void)
 Allocate a groove joint.
 
CP_EXPORT cpGrooveJointcpGrooveJointInit (cpGrooveJoint *joint, cpBody *a, cpBody *b, cpVect groove_a, cpVect groove_b, cpVect anchorB)
 Initialize a groove joint.
 
CP_EXPORT cpConstraintcpGrooveJointNew (cpBody *a, cpBody *b, cpVect groove_a, cpVect groove_b, cpVect anchorB)
 Allocate and initialize a groove joint.
 
CP_EXPORT cpVect cpGrooveJointGetGrooveA (const cpConstraint *constraint)
 Get the first endpoint of the groove relative to the first body.
 
CP_EXPORT void cpGrooveJointSetGrooveA (cpConstraint *constraint, cpVect grooveA)
 Set the first endpoint of the groove relative to the first body.
 
CP_EXPORT cpVect cpGrooveJointGetGrooveB (const cpConstraint *constraint)
 Get the first endpoint of the groove relative to the first body.
 
CP_EXPORT void cpGrooveJointSetGrooveB (cpConstraint *constraint, cpVect grooveB)
 Set the first endpoint of the groove relative to the first body.
 
CP_EXPORT cpVect cpGrooveJointGetAnchorB (const cpConstraint *constraint)
 Get the location of the second anchor relative to the second body.
 
CP_EXPORT void cpGrooveJointSetAnchorB (cpConstraint *constraint, cpVect anchorB)
 Set the location of the second anchor relative to the second body.
 

Detailed Description