Imagine you have a square added to your game as a body. It is dropping towards the ground.
Now imagine the square has a very thin, rectangular sensor immediately underneath it.
Is it possible to use the sensor to know when the sensor has collided with the ground?
Yes, it is. It fires a collision event.
Is it possible to know when the sensor has stopped colliding with the ground?
Yes, it is. It fires a collision, just like any other body would.
Is it possible to know when the sensor is not in contact with the ground? ie: If the sensor were represented by a transparent blue rectangle and the ground were a transparent yellow rectangle - how would you find out when the intersecting area (in this case coloured green) ceases to exist?
In short: I don’t want to know when the collision of two bodies is started and stopped, as represented by the bodies coming to rest, but when the sensor stops being in contact (or overlaying) another body.
Thanks for any insight,
Matt.
Ps: Yes, I may well need some trees clearing so I can see the wood! [import]uid: 8271 topic_id: 5557 reply_id: 305557[/import]