gravity is now passed in. Also added options to impose a
bounding box limiting movement in either x,y, or z