Added option to constrain only horizontally.
Attempts to get gravity to work. Giving up; don't think it's a good idea.