What is the opposite function of RotateVector ?
I would like to have the opposite of RotateVector, that takes two vectors as input and returns a rotator. So not UnrotateVector. In the following example, I know the return value, the input value A, and I want to know the B value. I think it's basic maths, but I got a bit lost in the C++ code and the rotation/transformation matrix. Can someone help me ? Thanks.
(comments are locked)

Hi, You may want this: FRotator::UnRotateVector
(comments are locked)

Hi, You may want this: FRotator::UnRotateVector
(comments are locked)

Is this what you looking for?
(comments are locked)

Your answer
Follow this question
Once you sign in you will be able to subscribe for any updates here
I tried to explore the C++ source code, but I'm giving up. It's very complicated behind
RotateVector
…The math's behind rotators are quaternions IIRC. https://en.wikipedia.org/wiki/Quaternion.