The distance of separation between two bodies affects the magnitude of the non-contact force between them such that
Magnitude of non-contact forces are inversely proportional to the square of distances between the 2 bodies
Magnitude of non-contact forces between 2 bodies is inversely proportional to the square of distances between them.