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

Functions

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

Detailed Description