Hey guys, I am making a ‘Jenga’ game, and i am trying to detect when the player has completely pulled a piece out of the tower. I need to check whether there are any other blocks touching the current block. There can be blocks above, bellow, left and right of the current block.
I wanted to use something like a Box Cast in these directions, and check if I hit any blocks. But unity doesnt have a box cast! I also tried to put 4 box collider/triggers on all sides, but I cant just query a trigger whether or not its in contact with something at a given time. I have to use OnTriggerX Functions and this makes it impossible to track whether or not a block is hitting another, since a block may hit more than 1 block.