This is just some random thing I made.
Do a large number (I did 2000) / the distance from something and you have a gravity thingy!