what are the factors that affect gravity​