public Polygon getIntersectingPolygon(Vector3f origin, Vector3f direction) {
        for(Polygon p : polygons) {
            if (p.isIntersecting(origin, direction)) {
                return p;
            }
        }
        return null;
    }