I am trying to make my version of a physical game called Genius Square. I have it almost done, but it doesn't snap correctly when I drop the piece on the outside of the grid.
The setup is as follows think of a Tetris piece. You have all of those plus a few others. I have them able to rotate and flip. However on say the T piece, if I rotate it 90 degrees, it doesn't snap to the correct row on the grid due to it's image point being at the same spot. This happens for a few of the pieces.
I have the pieces set up for a condition containing all 36 squares I have in a family called 'Grid', that make up the snapping grid, to pick the nearest. That works for some pieces. However, in the example of the t piece, as soon as it rotates, the image point is thrown off and it doesn't snap to the outermost row. Also, because of it's image point, it will drop a row in front or behind.
So I am looking for a different way for odd pieces to "snap" to grid.
Any suggestions would be appreciated!
Here is a quick Loom screen cap :
loom.com/share/736a9d1fb315479ea62397e1b2e42025
Here is also a screenshot