0 Members and 1 Guest are viewing this topic.
float y1 = h - y;float y2 = y - h/2;float c = 1 + y1 / y2;int floorX = (int) ((raydx * c) + px);int floorY = (int) ((raydy * c) + py);