diff 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
line wrap: on
line diff
--- a/trunk/chipmunkd/constraints/cpDampedRotarySpring.d	Fri Dec 03 01:01:39 2010 +0100
+++ b/trunk/chipmunkd/constraints/cpDampedRotarySpring.d	Fri Dec 03 21:38:01 2010 +0100
@@ -26,11 +26,11 @@
 //cpDampedRotarySpring *cpDampedRotarySpringAlloc(void);
 //cpDampedRotarySpring *cpDampedRotarySpringInit(cpDampedRotarySpring *joint, cpBody *a, cpBody *b, cpFloat restAngle, cpFloat stiffness, cpFloat damping);
 //cpConstraint *cpDampedRotarySpringNew(cpBody *a, cpBody *b, cpFloat restAngle, cpFloat stiffness, cpFloat damping);
-//TODO
-//CP_DefineConstraintProperty(cpDampedRotarySpring, cpFloat, restAngle, RestAngle);
-//CP_DefineConstraintProperty(cpDampedRotarySpring, cpFloat, stiffness, Stiffness);
-//CP_DefineConstraintProperty(cpDampedRotarySpring, cpFloat, damping, Damping);
-//CP_DefineConstraintProperty(cpDampedRotarySpring, cpDampedRotarySpringTorqueFunc, springTorqueFunc, SpringTorqueFunc);
+
+mixin(CP_DefineConstraintProperty!("cpDampedRotarySpring", "cpFloat", "restAngle", "RestAngle"));
+mixin(CP_DefineConstraintProperty!("cpDampedRotarySpring", "cpFloat", "stiffness", "Stiffness"));
+mixin(CP_DefineConstraintProperty!("cpDampedRotarySpring", "cpFloat", "damping", "Damping"));
+mixin(CP_DefineConstraintProperty!("cpDampedRotarySpring", "cpDampedRotarySpringTorqueFunc", "springTorqueFunc", "SpringTorqueFunc"));
 
 // cpDampedRotarySpring.c ---------------------------------