Hey, I'm trying to make a game where you need to drag a ball trough a maze.
I'm using drag and drop to drag the ball, but I don't know how to stop it from going trough the walls...
I first made it drop the ball on collision with the wall, but then you can just pick it back up and go trough the wall;
Then I added the physics behaviour to both the ball and the walls and made the walls immovable so that when I drop the ball, it would get "flinged" out of the wall.
But this isn't quite what I want... I'd like to keep dragging the ball even if the mouse is over a wall, but the ball to stop at the border with the wall and to move only sideways with the mouse...
So, is there a way to get this to work?
Thanks!