Effect of trajectory bending in calculations of shifts of the rovibrational lines of molecules is studied. The exact solutions of classical dynamic equations are used for calculating the second–order term of interruption function. The universal function of two arguments have been obtained which is independent of the parameters of potential and initial conditions of collision allowing one to take actual trajectories into consideration.