setDirection