this function will rotate direction usefull for changing wind coming from to going to
Contents:
API documentation: