Controlling linear and rotary motions of an object 3