Add rotationDir(ection) function