Page 1 of 1

Bizarro Collisions

Posted: Thu May 21, 2009 1:03 am
by pirateNarwhal
I recently changed the code on my project from passing objects references to the cpSpace to passing references to an object that contains a cpSpace, and adjusted the functions accordingly. For some reason, after doing this, the colliding objects do not seem to influence each other, but the objects register a collision (ie, explosions when one shape hits another). Has anybody encountered this problem before?

Re: Bizarro Collisions

Posted: Thu May 21, 2009 1:37 am
by slembcke
So you are using collision callbacks? Are you returning true? (returning false means that Chipmunk should discard the collision)

Re: Bizarro Collisions

Posted: Thu May 21, 2009 11:53 am
by pirateNarwhal
oh wow. Thank you.