I thought gravity was caused by the fact that the world is constantly spinning...

Like if you take a bucket with water and spin it around really fast nothing falls out of it.