bryanboyer
02-28-2006, 12:46 AM
I have a grid of basic cube-like shapes sitting side by side, X columns wide and Y rows deep.
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?
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?
