Final answer:
Gravity is affected by mass and distance, as described by Newton's law of gravitation which states that gravitational force increases with mass and decreases with the square of the distance.
Step-by-step explanation:
The force of gravity is affected by mass and distance. According to Newton's universal law of gravitation, the gravitational force between two objects is directly proportional to the product of their masses and inversely proportional to the square of the distance between them. This means that the more mass the objects have, and the closer they are to each other, the stronger the gravitational attraction will be.