Detect all objects/shapes touching (not just on collisions)...?

I noticed that the collision event, doesn’t trigger, if an object is moving too slowly.
I still want to be able to tell which objects a given shape is touching.

I couldn’t find anything in the Corona SDK’s API. It would be a fundamental improvement if there was a way to call something like:

displayObj1.physicsBody:getObjectsTouching();
In the meantime, how do I do the equivalent?
I’m thinking of keeping a table:

obj1.objectsTouching={}  

which gets updated on the collision “begin” and “ended” phases.

Is that a correct way to do it? Thanks again for any replies. [import]uid: 144151 topic_id: 26175 reply_id: 326175[/import]

If the began even phase doesn’t fire because the object is moving too slowly, but the collision does still occur, then it would be great if you could file a bug report using the link in the top left, including a zipped project we could run to reproduce the issue and take a look :slight_smile:

Peach [import]uid: 52491 topic_id: 26175 reply_id: 106182[/import]

Thanks.

That’s no longer the issue though. I found as long as one physics body is moving, the event.began phase will fire when the listening body, touches another. From there I implemented class methods for
:onBeginPhysicsContact() and :onEndPhysicsContact;

A minor issue for us now is that there’s is no built in way of detecting when two stationary physics bodies (one of them being type “static” the other being type “dynamic”) are colliding/touching

[import]uid: 144151 topic_id: 26175 reply_id: 106397[/import]

Easiest way would likely be comparing coordinates, we have lots of threads on that :slight_smile: [import]uid: 52491 topic_id: 26175 reply_id: 106632[/import]