Yeah, gravity actually makes the world go round. If I’m being technical, gravity bends space and time so that the earth follows a straight path in curved space. This holds true for everything affected by gravity. My source is Stephen Hawking so try me.
The universe is NOT infinite, Thanos even said it in the movie: “This universe is finite, its resources finite.” This is however a great way to point out the pitfalls encountered by adding infinities into physics.