This classic analogy for general relativity is actually rather misleading. For bodies moving much slower than the speed of light, the spatial curvature around a mass plays a negligible role in the orbital motion. Instead, the spacetime curvature in the time-radius manifold is what matters. For something moving at the speed of light, however, the spatial curvature is equally important.