hey, have a look at vec_rotate(direction,angle); should do what you need