To avoid the problem of the ball stuck on Y, you can add 2 big areas with space override and gravity on different mask, and each side affects the layer of the ball on hit.