Hello there :)
I'm actually working on a simple maze where an ellipse is drawn at the mouseX and mouseY positions.
I want to stop the ellipse when it encounters a wall, pretty much like in this sketch:
As you can see in this sketch, there is a collision but when you move the mouse somewhere else than within the white rectangle, the ellipse teleports itself through the wall.
Is there a way to completely stop the drawing of the ellipse at the mouse position when there is a collision with a white wall?
Thanks in advance for your time and have a good day ;)
1