Mercurial > projects > chipmunkd
comparison trunk/chipmunkd/constraints/cpSlideJoint.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 |
---|---|
22 } | 22 } |
23 | 23 |
24 //cpSlideJoint *cpSlideJointAlloc(void); | 24 //cpSlideJoint *cpSlideJointAlloc(void); |
25 //cpSlideJoint *cpSlideJointInit(cpSlideJoint *joint, cpBody *a, cpBody *b, cpVect anchr1, cpVect anchr2, cpFloat min, cpFloat max); | 25 //cpSlideJoint *cpSlideJointInit(cpSlideJoint *joint, cpBody *a, cpBody *b, cpVect anchr1, cpVect anchr2, cpFloat min, cpFloat max); |
26 //cpConstraint *cpSlideJointNew(cpBody *a, cpBody *b, cpVect anchr1, cpVect anchr2, cpFloat min, cpFloat max); | 26 //cpConstraint *cpSlideJointNew(cpBody *a, cpBody *b, cpVect anchr1, cpVect anchr2, cpFloat min, cpFloat max); |
27 //TODO | 27 |
28 //CP_DefineConstraintProperty(cpSlideJoint, cpVect, anchr1, Anchr1); | 28 mixin(CP_DefineConstraintProperty!("cpSlideJoint", "cpVect", "anchr1", "Anchr1")); |
29 //CP_DefineConstraintProperty(cpSlideJoint, cpVect, anchr2, Anchr2); | 29 mixin(CP_DefineConstraintProperty!("cpSlideJoint", "cpVect", "anchr2", "Anchr2")); |
30 //CP_DefineConstraintProperty(cpSlideJoint, cpFloat, min, Min); | 30 mixin(CP_DefineConstraintProperty!("cpSlideJoint", "cpFloat", "min", "Min")); |
31 //CP_DefineConstraintProperty(cpSlideJoint, cpFloat, max, Max); | 31 mixin(CP_DefineConstraintProperty!("cpSlideJoint", "cpFloat", "max", "Max")); |
32 | 32 |
33 // cpSlideJoint.c --------------------------------- | 33 // cpSlideJoint.c --------------------------------- |
34 | 34 |
35 static void | 35 static void |
36 preStep(cpSlideJoint *joint, cpFloat dt, cpFloat dt_inv) | 36 preStep(cpSlideJoint *joint, cpFloat dt, cpFloat dt_inv) |