How does a variable-sweep-wing aircraft keep wing-mounted payloads straight? So, a variable-sweep wing is an interesting design, but I am wondering: if the aircraft wing moves back or forward, then the payload's angle will also change. Is there a another rotating mechanism in the payload rack or wing to keep the payload straight?
For example, as demonstrated in this picture of a Tornado ADV  where the red lines are payloads. When the wing goes back it also changes the angle of the payload, unless there is another mechanism to keep the payload straight. 
However, some might argue that payload isn't carried on the variable part of the wing, as on the F14 (See the link for reference).
But, there are numerous examples of aircraft that do carry the payload on the variable section of the wings, such as the Panavia Tornado ADV and Su-24 (see the links for references).
Mechanically this can be done using the simplest form of pantograph, as a hinged parallelogram with one end fixed to the fuselage and the other to the ordnance pylon. Or, I suppose you could implement a digital one.