Chipmunk  6.0.3
Chipmunk API Reference for Kobold2D developers
cpPivotJoint

Data Structures

struct  cpPivotJoint

Functions

const cpConstraintClasscpPivotJointGetClass (void)
cpPivotJointcpPivotJointAlloc (void)
 Allocate a pivot joint.
cpPivotJointcpPivotJointInit (cpPivotJoint *joint, cpBody *a, cpBody *b, cpVect anchr1, cpVect anchr2)
 Initialize a pivot joint.
cpConstraintcpPivotJointNew (cpBody *a, cpBody *b, cpVect pivot)
 Allocate and initialize a pivot joint.
cpConstraintcpPivotJointNew2 (cpBody *a, cpBody *b, cpVect anchr1, cpVect anchr2)
 Allocate and initialize a pivot joint with specific anchors.
 CP_DefineConstraintProperty (cpPivotJoint, cpVect, anchr1, Anchr1)
 CP_DefineConstraintProperty (cpPivotJoint, cpVect, anchr2, Anchr2)

Function Documentation

CP_DefineConstraintProperty ( cpPivotJoint  ,
cpVect  ,
anchr1  ,
Anchr1   
)
CP_DefineConstraintProperty ( cpPivotJoint  ,
cpVect  ,
anchr2  ,
Anchr2   
)
cpPivotJoint* cpPivotJointAlloc ( void  )

Allocate a pivot joint.

const cpConstraintClass* cpPivotJointGetClass ( void  )
cpPivotJoint* cpPivotJointInit ( cpPivotJoint joint,
cpBody a,
cpBody b,
cpVect  anchr1,
cpVect  anchr2 
)

Initialize a pivot joint.

cpConstraint* cpPivotJointNew ( cpBody a,
cpBody b,
cpVect  pivot 
)

Allocate and initialize a pivot joint.

cpConstraint* cpPivotJointNew2 ( cpBody a,
cpBody b,
cpVect  anchr1,
cpVect  anchr2 
)

Allocate and initialize a pivot joint with specific anchors.