collision tree

Hi everyone!

Is there an easy way to make a list of instanced GameObjects (same tag), that you are colliding with(also indirectly trough other GameObjects with the same tag)?
I had a few solutions, but for now they are not working when I have recursive collisions (circle of objects colliding).

Thanks,
kaaJ

Can you use the contact point from the Collision Object (via the contacts property) and iterate through through them to get your list of objects?

Thanks,

Yeah, I tried that… sounds easier than it really is. The problem is that I need a global list with objects that I already checked, because otherwise It would loop if 2 objects collide the same object. But I think I found an “easy” solution. I give every object a new tag, and when 2 object collide, I make the tags equal. (On collision exit I will give them again a new tag). With this method, I can find the right objects with the builtin functions… I guess. I will try to implement the functions tomorrow… If it works out fine, I’ll will put them on the wiki if anyone is interested.

Grtz,
kaaJ