Gravity shapes planets by causing their constituent particles to attract one another, which results in a spherical form when the mass is at rest, or an oblate (flattened) spheroid when the mass rotates . This rotational flattening occurs because the centrifugal force arising from rotation diminishes gravity at the equator, causing particles to accumulate there until their mutual attraction balances the centrifugal force, which makes the planet bulge at the equator and compress at the poles . Although planets are not perfect spheres, their deviation from a spheroidal form is so small that even rapidly rotating bodies like Jupiter can be regarded as spherical from a distance . Consequently, the planets and other celestial bodies attract one another as if they were condensed into single particles at their centers, a condition that greatly facilitates the investigation of their motions .