diff trunk/chipmunkd/constraints/cpPivotJoint.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/cpPivotJoint.d	Fri Dec 03 01:01:39 2010 +0100
+++ b/trunk/chipmunkd/constraints/cpPivotJoint.d	Fri Dec 03 21:38:01 2010 +0100
@@ -24,9 +24,9 @@
 //cpPivotJoint *cpPivotJointInit(cpPivotJoint *joint, cpBody *a, cpBody *b, cpVect anchr1, cpVect anchr2);
 //cpConstraint *cpPivotJointNew(cpBody *a, cpBody *b, cpVect pivot);
 //cpConstraint *cpPivotJointNew2(cpBody *a, cpBody *b, cpVect anchr1, cpVect anchr2);
-//TODO
-//CP_DefineConstraintProperty(cpPivotJoint, cpVect, anchr1, Anchr1);
-//CP_DefineConstraintProperty(cpPivotJoint, cpVect, anchr2, Anchr2);
+
+mixin(CP_DefineConstraintProperty!("cpPivotJoint", "cpVect", "anchr1", "Anchr1"));
+mixin(CP_DefineConstraintProperty!("cpPivotJoint", "cpVect", "anchr2", "Anchr2"));
 
 static void
 preStep(cpPivotJoint *joint, cpFloat dt, cpFloat dt_inv)