Any trick to get sensors working on physical bodies

I am having trouble getting sensors to work on physical bodies, I just can’t get them working for the life of me.

Lets say I have one object that stays stationary on the bottom part of the screen (will eventually be controlled via the accelerometer), I also have objects transitioning from the top to the bottom of the screen. I would like a pre-collision event that removes the object that is transitioning down the screen if they interact with the object that is at the bottom of the screen.

Everything works fine if I have them as physical bodies not as sensors, the only problem is that there must be a slight millisecond where the collision happens before the object is removed because after a whole bunch of these collisions the stationary object will eventually move down off the bottom of the screen.

So I thought I could turn the stationary object into a sensor so that even though the transitioning objects will pass through it, it would still trigger the pre-collision event so that I could delete the objects, thus stopping the slow gradual moving of the stationary object down off the screen.

Am I incorrect on my thinking of how sensors work? Or is there any special trick to get these working correctly?

Thanks for any help or advice anyone can give,

-Clark [import]uid: 5786 topic_id: 3607 reply_id: 303607[/import]

From what I have experienced, sensors don’t fire a pre/post collision event as there is no physic reaction involved. They only fire in the collision event. [import]uid: 5712 topic_id: 3607 reply_id: 10949[/import]

Thanks Mike!

That makes sense, just changed my listeners to the collision event and it works perfect, thanks for the help! [import]uid: 5786 topic_id: 3607 reply_id: 10988[/import]