I can´t write you any code because I´m very busy atm.
But you can try vec_lerp and use the sin function to set the factor "f".
This should give you a smooth rotation.


no science involved