Chipmunk  6.0.3
Chipmunk API Reference for Kobold2D developers
cpDampedRotarySpring

Data Structures

struct  cpDampedRotarySpring

Typedefs

typedef cpFloat(* cpDampedRotarySpringTorqueFunc )(struct cpConstraint *spring, cpFloat relativeAngle)

Functions

const cpConstraintClasscpDampedRotarySpringGetClass (void)
cpDampedRotarySpringcpDampedRotarySpringAlloc (void)
 Allocate a damped rotary spring.
cpDampedRotarySpringcpDampedRotarySpringInit (cpDampedRotarySpring *joint, cpBody *a, cpBody *b, cpFloat restAngle, cpFloat stiffness, cpFloat damping)
 Initialize a damped rotary spring.
cpConstraintcpDampedRotarySpringNew (cpBody *a, cpBody *b, cpFloat restAngle, cpFloat stiffness, cpFloat damping)
 Allocate and initialize a damped rotary spring.
 CP_DefineConstraintProperty (cpDampedRotarySpring, cpFloat, restAngle, RestAngle)
 CP_DefineConstraintProperty (cpDampedRotarySpring, cpFloat, stiffness, Stiffness)
 CP_DefineConstraintProperty (cpDampedRotarySpring, cpFloat, damping, Damping)
 CP_DefineConstraintProperty (cpDampedRotarySpring, cpDampedRotarySpringTorqueFunc, springTorqueFunc, SpringTorqueFunc)

Typedef Documentation

typedef cpFloat(* cpDampedRotarySpringTorqueFunc)(struct cpConstraint *spring, cpFloat relativeAngle)

Function Documentation

CP_DefineConstraintProperty ( cpDampedRotarySpring  ,
cpFloat  ,
restAngle  ,
RestAngle   
)
CP_DefineConstraintProperty ( cpDampedRotarySpring  ,
cpFloat  ,
stiffness  ,
Stiffness   
)
CP_DefineConstraintProperty ( cpDampedRotarySpring  ,
cpFloat  ,
damping  ,
Damping   
)
CP_DefineConstraintProperty ( cpDampedRotarySpring  ,
cpDampedRotarySpringTorqueFunc  ,
springTorqueFunc  ,
SpringTorqueFunc   
)
cpDampedRotarySpring* cpDampedRotarySpringAlloc ( void  )

Allocate a damped rotary spring.

const cpConstraintClass* cpDampedRotarySpringGetClass ( void  )
cpDampedRotarySpring* cpDampedRotarySpringInit ( cpDampedRotarySpring joint,
cpBody a,
cpBody b,
cpFloat  restAngle,
cpFloat  stiffness,
cpFloat  damping 
)

Initialize a damped rotary spring.

cpConstraint* cpDampedRotarySpringNew ( cpBody a,
cpBody b,
cpFloat  restAngle,
cpFloat  stiffness,
cpFloat  damping 
)

Allocate and initialize a damped rotary spring.