Yes. All matter has a property called “inertia”, which is a resistance to changes in motion. It doesn’t depend on gravity.
When you spin around, there’s fluid in your inner ear which moves too. But since it’s a fluid its motion can lag a little bit due to its inertia. It doesn’t respond immediately to changes in motion. The solid parts of your head/body do, since they are tightly connected to each other.
That fluid motion moves some tiny hairs, and they send nerve signals to your brain telling it that you are moving. Gravity isn’t really required.
Latest Answers