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 ;)