For a roller coaster, gravity pulls down on the cars and its riders with a constant force, whether they move uphill, downhill, or through a loop. The rigid steel tracks, together with gravity, provide the centripetal force needed to keep the cars on the arching path as they move through the loop.