Here's the breakdown:
* Mass: The more massive the objects, the stronger the gravitational force between them.
* Distance: The closer the objects are to each other, the stronger the gravitational force. This force decreases rapidly as the distance between the objects increases.
This relationship is described by Newton's Law of Universal Gravitation:
F = G * (m1 * m2) / r²
Where:
* F is the force of gravity
* G is the gravitational constant (a universal value)
* m1 and m2 are the masses of the two objects
* r is the distance between their centers