The direction of the nozzle is controlled by the Thrust Vector Control (TVC) system. The TVC is powered by hot gas from the Solid Propellant Gas Generator (SPGG). Here we see the SPGG ignition, 15 seconds before launch.