comparison trunk/chipmunkd/constraints/cpDampedRotarySpring.d @ 13:c03a41d47b60

- finished all constraints properties - implemented cpAssertWarn the mixin way
author Extrawurst
date Fri, 03 Dec 2010 21:38:01 +0100
parents b68f10432182
children 4541ca17975b
comparison
equal deleted inserted replaced
12:8697699b2c5a 13:c03a41d47b60
24 } 24 }
25 25
26 //cpDampedRotarySpring *cpDampedRotarySpringAlloc(void); 26 //cpDampedRotarySpring *cpDampedRotarySpringAlloc(void);
27 //cpDampedRotarySpring *cpDampedRotarySpringInit(cpDampedRotarySpring *joint, cpBody *a, cpBody *b, cpFloat restAngle, cpFloat stiffness, cpFloat damping); 27 //cpDampedRotarySpring *cpDampedRotarySpringInit(cpDampedRotarySpring *joint, cpBody *a, cpBody *b, cpFloat restAngle, cpFloat stiffness, cpFloat damping);
28 //cpConstraint *cpDampedRotarySpringNew(cpBody *a, cpBody *b, cpFloat restAngle, cpFloat stiffness, cpFloat damping); 28 //cpConstraint *cpDampedRotarySpringNew(cpBody *a, cpBody *b, cpFloat restAngle, cpFloat stiffness, cpFloat damping);
29 //TODO 29
30 //CP_DefineConstraintProperty(cpDampedRotarySpring, cpFloat, restAngle, RestAngle); 30 mixin(CP_DefineConstraintProperty!("cpDampedRotarySpring", "cpFloat", "restAngle", "RestAngle"));
31 //CP_DefineConstraintProperty(cpDampedRotarySpring, cpFloat, stiffness, Stiffness); 31 mixin(CP_DefineConstraintProperty!("cpDampedRotarySpring", "cpFloat", "stiffness", "Stiffness"));
32 //CP_DefineConstraintProperty(cpDampedRotarySpring, cpFloat, damping, Damping); 32 mixin(CP_DefineConstraintProperty!("cpDampedRotarySpring", "cpFloat", "damping", "Damping"));
33 //CP_DefineConstraintProperty(cpDampedRotarySpring, cpDampedRotarySpringTorqueFunc, springTorqueFunc, SpringTorqueFunc); 33 mixin(CP_DefineConstraintProperty!("cpDampedRotarySpring", "cpDampedRotarySpringTorqueFunc", "springTorqueFunc", "SpringTorqueFunc"));
34 34
35 // cpDampedRotarySpring.c --------------------------------- 35 // cpDampedRotarySpring.c ---------------------------------
36 36
37 static cpFloat 37 static cpFloat
38 defaultSpringTorque(cpDampedRotarySpring *spring, cpFloat relativeAngle){ 38 defaultSpringTorque(cpDampedRotarySpring *spring, cpFloat relativeAngle){