@nasser That the code only calculates the collision of the upper right corner with the edges of the viewport is especially sad!