Close encounters of a rotating star with planets in parabolic orbits of varying inclination and the formation of hot Jupiters