how to get second object(objectB) in "is Overlapping (advance)"
+ System: Green (Pick) and Blue (Pick) are overlapping[/code:3juau27c]
In "is Overlapping (advance)", it can pick two object( objectA= Green, objectB = Blue).
I can't identify objectA and objectB in action if I use the same object in event like that
[code:3juau27c]+ System: ball (Pick) and ball (Pick) are overlapping[/code:3juau27c]( objectA= ball, objectB = ball)
Here is my test cap file
[url=http://dl.dropbox.com/u/5779181/collision_pair.zip]http://dl.dropbox.com/u/5779181/collision_pair.zip[/url]
If you want to detect collision between two objects, and get the UID of each of those objects separately without using the Family Trick, then you can do so with this method:
http://dl.dropbox.com/u/529356/Construc ... orting.cap
It's a little more complicated, but it doesn't use families or advanced overlapping.
It does use some global and private variables to keep track of which objects are being sorted during collision though. Anyway, I commented it so have a look, and if you have any questions feel free to post them.
Also... there seems to be a bit of a bug where multiple collisions are registering at once for the same two objects colliding. You could add some events to make sure that only one collision is registered to compensate for that. BUT it is getting the UIDs of either colliding object correctly.
Also, the way it's set up right now, the object with the lowest UID will always show up first in the output list. This is due to sub-event #9, which assigns the order in a loop based on UID ascending. You can change the way the balls are selected to make that more random if you need to.
Anyway, hope this helps.