The document discusses adding a state machine component to an earth object in order to make it spin when clicked. It describes adding states like "default" and "rotate" connected by actions like "pick" and "rotate." The pick action will trigger when the user clicks the earth, connecting to the rotate state where a rotate action is added to spin the earth 10 degrees per frame on the Y axis. When play is pressed, clicking the earth will now make it spin.