How does the curvature of spacetime create gravity?