Controlling linear and rotary motions of an object 4