Effects of gravity on celestial bodies