Each of the objects has the same gravity regardless of their positions. However, the closer together the two approach, the stronger the influence of their gravity on each other becomes.
Didn't find the answer you were looking for?