I have a situation:
I have a 3D object in the world. let's say a sphere.
I have 2 random directionnal vector: vector A, and vectorB:
My question is: How to I rotate over time my object, from A to B ? The vector A is important: I don't want to simply rotate the forward of the object from current forward to B.
I know I can use the function vector3 C = Vector3.SmoothDamp(...) in unity to lerp between my 2 vectors A & B.
but then ok, I have vector3 C, how do I apply the rotationof my object to C ? if don't want to do: gameObject.transform.forward = C;
I want something like: gameObject.transform.rotation = SomeQuaternion(C, initial rotation A). or something.
Thank you for help !
PS: I don't want to parent / unparent gameObject or something like that, i want the math answer, using Quaternion.