Mercurial > projects > chipmunkd
comparison trunk/chipmunkd/cpBody.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 | d88862c82f06 |
comparison
equal
deleted
inserted
replaced
12:8697699b2c5a | 13:c03a41d47b60 |
---|---|
110 cpBodyIsRogue(const cpBody* _body) | 110 cpBodyIsRogue(const cpBody* _body) |
111 { | 111 { |
112 return (_body.space is null); | 112 return (_body.space is null); |
113 } | 113 } |
114 | 114 |
115 | 115 //TODO |
116 //#define CP_DefineBodyGetter(type, member, name) \ | 116 //#define CP_DefineBodyGetter(type, member, name) \ |
117 //static inline type cpBodyGet##name(const cpBody *body){return body.member;} | 117 //static inline type cpBodyGet##name(const cpBody *body){return body.member;} |
118 // | 118 // |
119 //#define CP_DefineBodySetter(type, member, name) \ | 119 //#define CP_DefineBodySetter(type, member, name) \ |
120 //static inline void \ | 120 //static inline void \ |
361 cpBodySleep(cpBody *_body) | 361 cpBodySleep(cpBody *_body) |
362 { | 362 { |
363 if(cpBodyIsSleeping(_body)) return; | 363 if(cpBodyIsSleeping(_body)) return; |
364 | 364 |
365 assert(!cpBodyIsStatic(_body) && !cpBodyIsRogue(_body), "Rogue and static bodies cannot be put to sleep."); | 365 assert(!cpBodyIsStatic(_body) && !cpBodyIsRogue(_body), "Rogue and static bodies cannot be put to sleep."); |
366 cpSpaceSleepBody(_body.space, _body); //TODO | 366 cpSpaceSleepBody(_body.space, _body); |
367 } | 367 } |