I’ve been trying to get this to work all day. Any help is appreciated. I need to get game object B’s rotation values as relative to object As rotation values (the user controls B).
I have another set of objects (C and D) placed elsewhere in world space (position and rotation wise). I want D to rotate relative to C’s rotation just as B rotates relative to A. I got help doing something similar in the past with position instead of rotations using inverse transform points.
So I’m basically looking for the rotational equivalent of the below code.
Thank you very much! I believe this gets me half way. How would I then implement the second part - make D rotate around C using “rotFromAToB” values? Thanks again.