25 typedef struct cpDampedSpring cpDampedSpring;
29 const cpConstraintClass *cpDampedSpringGetClass(
void);
32 struct cpDampedSpring {
38 cpDampedSpringForceFunc springForceFunc;
57 CP_DefineConstraintProperty(cpDampedSpring,
cpVect, anchr1, Anchr1)
58 CP_DefineConstraintProperty(cpDampedSpring,
cpVect, anchr2, Anchr2)
59 CP_DefineConstraintProperty(cpDampedSpring,
cpFloat, restLength, RestLength)
60 CP_DefineConstraintProperty(cpDampedSpring, cpFloat, stiffness, Stiffness)
61 CP_DefineConstraintProperty(cpDampedSpring, cpFloat, damping, Damping)
62 CP_DefineConstraintProperty(cpDampedSpring, cpDampedSpringForceFunc, springForceFunc, SpringForceFunc)