I've been trying to write XPRESSO that could detect whether there is an object to the left, right, top, bottom or whether the object is on the edge of the grid. At first I thought ray collision would be perfect... but you have to specify the one object you want to test for collisions with. I'm assuming that an object hierarchy could be used, but I need the Xpresso xpression to be as mobile as possible (so the idea of specifying which hierarchy to check wouldnt work).
Is this possible? Am I crazy?