Which statement is true about the variables that affect the force of gravity between two objects?

A Force of gravity is affected by the diameters of the objects and their distance from the Sun.

B Force of gravity is affected by the masses of the objects and the distance between their centers.

C Force of gravity is affected by the volume of the objects and their velocity relative to the Sun.

D Force of gravity is affected by the masses of the objects and the distance between their outermost edges.

B Force of gravity is affected by the masses of the objects and the distance between their centers.