Entities keep a distance due to their collision hull. Set the hull smaller if you want them to get closer. You can find details under the link I've posted above.

The engine does not apply any x or y forces to entities (unless you're using physics). So if you find the forces to be reversed, check your script.