The attractionForce attracts (or repels) a thing based on a list of attractors.
For example, lets say we have earth and sun
The sun should be the thing that attracts the earth, so it is setup in the force, along with a gravity value of 0.1:
The force can take a third parameter for the range at which the force is applied: