Physics - detecting stacked objects, looking for ideas

I’ve got some physics objects falling down the screen. I’m looking for ideas as to how I can detect if two or more objects are stacked on top of the other.

It seems that objects don’t always come to rest and become in active. So testing body.isBodyActive doesn’t seem to work for this.

I also tried testing, each frame, the relative x and y positions of objects. This works but seems a little Rube Golderg. I’m looking for some new ideas or suggestions, if anyone has good ideas please let me know. [import]uid: 98652 topic_id: 33936 reply_id: 333936[/import]

Just wondering if you ever got this figured out. I was playing around with an idea that also requires this sort of detection and I assumed others had done it by now. But yours was the only post I found so far on this topic, even when I broadened the search outside of Corona into straight Box 2D.

Ray cast straight down would be my guess.

Just wondering if you ever got this figured out. I was playing around with an idea that also requires this sort of detection and I assumed others had done it by now. But yours was the only post I found so far on this topic, even when I broadened the search outside of Corona into straight Box 2D.

Ray cast straight down would be my guess.