I understand the issue yes, this is the problem that i have been mainly trying to solve.

What do you mean by "convert the rotation variable angles into a vector" ? the rotation variable is already a vector ?