WASDEQ to move Arrow keys to turn Where I got the algorithm: https://www.geeksforgeeks.org/line-clipping-set-1-cohen-sutherland-algorithm/ This doesn't clip perfectly, as i used 2D clipping instead of 3D clipping.