I am trying to make a simple jigsaw puzzle where the player can touch and drag a piece. But when the pieces gets close, I need to make sure I detect WHICH piece is touched as they are concave figures.
So a simple boxed approach wont fit once they get dragged near each other.
I was thinking of some sort of masking approach like we used to do back in Flash/C++ days.
Just wondering what great functions we might have available for same thing in Unity?
Any samples/suggestions are welcome. I am trying to figure out if GetPixels is an option or if I should calculate a masking layer from the tranparacy in the PNG or if I can detect the alpha directly and then go through the depth/stacks of objects if the pixel you touch are transparent.