Sounds like you've had positional vertigo. I've had that. Had to be hung upside down (really!...sort of...) to get the little 'crystals' in my inner ear back in place. I thought it was a joke until it actually worked.
If you have it again, you may need some help figuring out how to get that fluid back in place - I went to a physical therapist who really did the trick. In the meantime, you can use a motion sickness medication (my doctor's hint) like Bonine or Dramamine or something like that.
I'm sorry you're going through that...it's so uncomfortable and really makes it impossible to do much of anything. Hope it passes soon!