Traditionally the spherical collapse of objects is studied with respect to a uniform background density, yielding the critical over-density δ c as key ingredient to the mass function of virialized objects. Here we investigate the shear and rotation acting on a peak in a Gaussian random field. By assuming that collapsing objects mainly form at those peaks, we use this shear and rotation as external effects changing the dynamics of the spherical collapse, which is described by the Raychaudhuri equation. We therefore assume that the shear and rotation have no additional dynamics on top of their cosmological evolution and thus only appear as inhomogeneities in the differential equation.We find that the shear will always be larger than the rotation at peaks of the random field, which automatically results into a lower critical over-density δ c , since the shear always supports the collapse, while the rotation acts against it. Within this model δ c naturally inherits a mass dependence from the Gaussian random field, since smaller objects are exposed to more modes of the field. The overall effect on δ c is approximately of the order of a few percent with a decreasing trend to high masses.