The Mechanics of Emotion