I have a chessboard with all the black pieces that move with this code:
I found that when I move the pieces, they will stack on top of each other. How can I prevent this?
I have since changed the code to this:
When I move a piece over another it still picks that piece up, but now it will occasionally completely prevent any stacked pieces from moving. What can I do, and is there a way to do this while still being able to move one piece over top of another?
Also, the pieces origin and collision box ( all similar to the king) look like this: 