The wind-turbine shaft is connected to the center of the rotor. When the rotor spins, the shaft spins as well. In this way, the rotor transfers its mechanical, rotational energy to the shaft and generator that is connected to it.