The tiles should only be able to move vertically or horizontally (freely) to get to any square as long as their path is unobstructed. I want to draw a path connecting the centre of every square on the board and have the tiles move along that path (if you know any other way of achieving my goal, pls let me know! ). So, I need a way to detect if there’s a tile in the way of the one I want to move along the path. I couldn’t find anything on detecting object-path intersections, so I need help with that. I need to detect if there’s an obstruction before I move the tile. So, in summary, how can I detect if there’s an intersection between an object and a point on a path? Can you suggest a simpler/more efficient way I can achieve my aim?