I have searched many forums but I can't seem to find any sample code for this.
How can I detect if Sensor A is currently overlapping Sensor B or not in Box2d Alchemy Port / WCK? 😢
I can't recall if sensors don't collide at all. I think they don't. You could get creative with category & mask bits to make one of the bodies behave like a sensor, even if it isn't one.
help please..i like wck..anyone?
I don't want my code to detect collisions, instead, I want to detect if Sensor A is OVER Sensor B in a 'pixel perfect' manner. 🙂 Is there no solution for this? 😀
It sounds like you've got complicated polygon sensors set up with the possibility for multiple contact points?
use something like a contact counter. When you get a BEGIN_CONTACT increment it. When you get an END_CONTACT decrement it. So then you know if it's over zero you've got a contact.