I cannot seem to get my sensor to receive collision events. I’ve tried using preCollisions, postCollisions, static bodyType, different shapes, disabling collision filters, etc., but it doesn’t fire. As soon as I set the same thing to isSensor = false, it all works and collisions are received…
Can anyone help?
(Sorry I don’t have a really short code snippet as it’s all part of my sprites engine…) [import]uid: 10284 topic_id: 4720 reply_id: 304720[/import]
Not sure if this is your issue or not but I was having the same issue as you are describing and someone in the forums told me that sensors don’t fire pre/post collisions, they only fire on the collision event. I switched mine over to the collision event and sensors work perfect.
Sounds exactly like the solution to my problem then, thanks so much! Indeed I only checked pre and post collision and nothing else. I will give your suggestion a try and will report back! [import]uid: 10284 topic_id: 4720 reply_id: 15057[/import]