Hi guys !
I have been struggling for several hours, but just cant find a way to achieve what I want.
On the process of building a puzzle game (kinda like Rush Hour), I need to move draggable object within a “grid” and also prevent any object to pass throught another one.
Here is a prototype of the scene and blocs on excel, so you can guess how it looks like.
All the different shape and color blocs have the exact same behaviour. They can be dragged, go from an area of the grid to another one, with no possible passing through other blocs. They cant even touch each other, since there will be an offset between every object.
For the drag part, I am using the extension Snap To Grid, which works fine (but maybe not compatible with all the specs …) :
But I cant figure out how to deal with the collision part.
There will be (like on the screenshot), 14 blocs, walls around the game area and wall inside the game area. Walls cant be moved/dragged, but they should act the same way as blos for the collision part.
Any ideas ? Been stuck on this for too much time, I hope you could help me.