Chipmunk  6.0.3
Chipmunk API Reference for Kobold2D developers
cpRatchetJoint

Data Structures

struct  cpRatchetJoint

Functions

const cpConstraintClasscpRatchetJointGetClass (void)
cpRatchetJointcpRatchetJointAlloc (void)
 Allocate a ratchet joint.
cpRatchetJointcpRatchetJointInit (cpRatchetJoint *joint, cpBody *a, cpBody *b, cpFloat phase, cpFloat ratchet)
 Initialize a ratched joint.
cpConstraintcpRatchetJointNew (cpBody *a, cpBody *b, cpFloat phase, cpFloat ratchet)
 Allocate and initialize a ratchet joint.
 CP_DefineConstraintProperty (cpRatchetJoint, cpFloat, angle, Angle)
 CP_DefineConstraintProperty (cpRatchetJoint, cpFloat, phase, Phase)
 CP_DefineConstraintProperty (cpRatchetJoint, cpFloat, ratchet, Ratchet)

Function Documentation

CP_DefineConstraintProperty ( cpRatchetJoint  ,
cpFloat  ,
angle  ,
Angle   
)
CP_DefineConstraintProperty ( cpRatchetJoint  ,
cpFloat  ,
phase  ,
Phase   
)
CP_DefineConstraintProperty ( cpRatchetJoint  ,
cpFloat  ,
ratchet  ,
Ratchet   
)
cpRatchetJoint* cpRatchetJointAlloc ( void  )

Allocate a ratchet joint.

const cpConstraintClass* cpRatchetJointGetClass ( void  )
cpRatchetJoint* cpRatchetJointInit ( cpRatchetJoint joint,
cpBody a,
cpBody b,
cpFloat  phase,
cpFloat  ratchet 
)

Initialize a ratched joint.

cpConstraint* cpRatchetJointNew ( cpBody a,
cpBody b,
cpFloat  phase,
cpFloat  ratchet 
)

Allocate and initialize a ratchet joint.