Chipmunk2D Pro API Reference  7.0.3
 All Classes Functions Variables Typedefs Enumerations Enumerator Properties Groups Pages
Functions
cpRotaryLimitJoint

Functions

CP_EXPORT cpBool cpConstraintIsRotaryLimitJoint (const cpConstraint *constraint)
 Check if a constraint is a damped rotary springs.
 
CP_EXPORT cpRotaryLimitJointcpRotaryLimitJointAlloc (void)
 Allocate a damped rotary limit joint.
 
CP_EXPORT cpRotaryLimitJointcpRotaryLimitJointInit (cpRotaryLimitJoint *joint, cpBody *a, cpBody *b, cpFloat min, cpFloat max)
 Initialize a damped rotary limit joint.
 
CP_EXPORT cpConstraintcpRotaryLimitJointNew (cpBody *a, cpBody *b, cpFloat min, cpFloat max)
 Allocate and initialize a damped rotary limit joint.
 
CP_EXPORT cpFloat cpRotaryLimitJointGetMin (const cpConstraint *constraint)
 Get the minimum distance the joint will maintain between the two anchors.
 
CP_EXPORT void cpRotaryLimitJointSetMin (cpConstraint *constraint, cpFloat min)
 Set the minimum distance the joint will maintain between the two anchors.
 
CP_EXPORT cpFloat cpRotaryLimitJointGetMax (const cpConstraint *constraint)
 Get the maximum distance the joint will maintain between the two anchors.
 
CP_EXPORT void cpRotaryLimitJointSetMax (cpConstraint *constraint, cpFloat max)
 Set the maximum distance the joint will maintain between the two anchors.
 

Detailed Description