Hi
Well, there is a function doing just that, but what if I already have a Quaternion, how can I rotate that quaternion around an axis?
Hi
Well, there is a function doing just that, but what if I already have a Quaternion, how can I rotate that quaternion around an axis?
There is actually a multiplication operator defined for quaternions. When you write something like:-
combined = q1 * q2;
…“combined” is now equivalent to rotation q1 rotated by q2. To do what you want, you probably just need to define your rotation using Quaternion.AngleAxis and then multiply the original quat by it.
Thanks!