A control device for a vehicle or mechanism includes a portable displacement controller which permits a non-technical user to achieve effective control of the vehicle or mechanism, by moving the portable displacement controller intuitively with little learning effort. A first sensing device, attached to the displacement controller, detects the user's controlling motion. A second sensing device, attached to the object being controlled, detects motion thereof. An interface device receives signals from the sensing devices, processes those signals to determine relative motion of the controlling motion and the object's motion and outputs a control signal in accordance with the processed signals. The sensing devices each detect motion in six degrees of freedom; the sensing devices each include a three-axis accelerometer, a three-axis gyroscope, and a three-axis magnetometer. In specific embodiments, the accelerometers, gyroscopes, and magnetometers include micro-electromechanical system (MEMS) devices.