I have recently discovered that there exist such thing as quaternions..... But I do not know how to define a vector, in other words how to tell the engine that this vector must be used to calculate the angle. E. G. I have a player who looks forward. How can I write in my script that the direction where he looks schould be used to rotate his head?
Maybe I am wrong in understanding how quaternions work, but anyways please help me to figure it out....