Collision but no physics processing

Hi all,

I think chipmunk allowed this and it was dead useful.

So for example on a pre collision callback if it returned true the ‘physics’ got processed ; if the callback returned false the physics did not occur. 

This made it much easier to deal with bodies whom ‘state’ changes through the game and was simpler than multiple flags.

Thanks!

Hi there,

You should be able to accomplish that behavior using the event.contact information in a preCollision listener.  This is a great blog post that describes how to use it: http://www.coronalabs.com/blog/2012/11/27/introducing-physics-event-contact/.

  • Andrew

PERFECT thanks!

Hi there,

You should be able to accomplish that behavior using the event.contact information in a preCollision listener.  This is a great blog post that describes how to use it: http://www.coronalabs.com/blog/2012/11/27/introducing-physics-event-contact/.

  • Andrew

PERFECT thanks!