So force of gravity is directly proportional to mass of object. If you double the mass of something, gravity acts with twice as much force on it. It's usually reasonable to simply think of the gravitational force between objects as a function of the distance between their centers of mass.