and that is determined by how massive the star has to be and how close you have to get to it in order to deflect this velocity v change your velocity from plus v to minus v, zooming you back towards earth.