comparison trunk/chipmunkd/cpSpaceStep.d @ 13:c03a41d47b60

- finished all constraints properties - implemented cpAssertWarn the mixin way
author Extrawurst
date Fri, 03 Dec 2010 21:38:01 +0100
parents 7ebbd4d05553
children 4ceef5833c8c
comparison
equal deleted inserted replaced
12:8697699b2c5a 13:c03a41d47b60
106 // contact buffer could overflow on the next collision, push a fresh one. 106 // contact buffer could overflow on the next collision, push a fresh one.
107 cpSpacePushFreshContactBuffer(space); 107 cpSpacePushFreshContactBuffer(space);
108 } 108 }
109 109
110 cpContactBufferHeader *head = space.contactBuffersHead; 110 cpContactBufferHeader *head = space.contactBuffersHead;
111 return &(cast(cpContactBuffer *)head).contacts[head.numContacts]; //TODO: check if this works 111 return &(cast(cpContactBuffer *)head).contacts[head.numContacts];
112 } 112 }
113 113
114 static void 114 static void
115 cpSpacePushContacts(cpSpace *space, int count){ 115 cpSpacePushContacts(cpSpace *space, int count){
116 assert(count <= CP_MAX_CONTACTS_PER_ARBITER, "Internal error, too many contact point overflow!"); 116 assert(count <= CP_MAX_CONTACTS_PER_ARBITER, "Internal error, too many contact point overflow!");