public void renderStationaryEntity(StaticEntity entity){

        Camera camera = raycaster.getCamera();
        Screen screen = raycaster.getBuffer();

        double x0 = 0, x1 = 1;

        double[] rot1 = Geometry.rotatePoint(entity.getX1(), entity.getZ1(), camera.getX(), camera.getZ(), this.sin, this.cos);
        double[] rot2 = Geometry.rotatePoint(entity.getX2(), entity.getZ2(), camera.getX(), camera.getZ(), this.sin, this.cos);

        if(-rot1[1] < clip && -rot2[1] < clip){
            return;
        }
        if(-rot1[1] < clip){
            rot1 = this.clipPoint(rot1[0], rot1[1], rot2[0], rot2[1], -clip);
            x0 = 1 - rot1[2];
        }else{
            if(-rot2[1] < clip){
                rot2 = this.clipPoint(rot2[0], rot2[1], rot1[0], rot1[1], -clip);
                x1 = rot2[2];
            }
        }

        double[] point = transformPoint(camera, rot1[0], entity.getY() + entity.getHeight()/2, rot1[1]);
        double[] point2 = transformPoint(camera, rot2[0], entity.getY() + entity.getHeight()/2, rot2[1]);
        double[] point3 = new double[]{point2[0], point2[1] + ((entity.getHeight() / point2[2]) * camera.getAspectRatio()), point2[2]};
        double[] point4 = new double[]{point[0],  point[1]  + ((entity.getHeight()  / point[2]) * camera.getAspectRatio()), point[2]};

        if(point[0] < -1 && point2[0] < -1){
            return;
        }
        if(point[0] > 1 && point2[0] > 1){
            return;
        }

        int[] p1 = screen.getOnScreen(point);
        int[] p2 = screen.getOnScreen(point2);
        int[] p3 = screen.getOnScreen(point3);
        int[] p4 = screen.getOnScreen(point4);

        renderWall(p1, p2, p3, p4, point2[2] - point[2], point[2], point2[2], x0, x1, entity.getRender(), entity.isAlphaEnabled());

    }