gravity affect on astronomical bodies