Controlling linear and rotary motions of an object 2