My code seems to be doing everything I want it to. I’m getting no errors or warnings. But when hit Play I get the following console Log over and over…
Look rotation viewing vector is zero
UnityEngine.Quaternion:LookRotation(Vector3)
It’s has a Debug.Log style icon next to it as opposed to an error or warning icon.
The code line that’s producing it is this:
Quaternion newRotation = Quaternion.LookRotation (movement);
The variable “movement” is a Vector3 if that helps.
Can anyone shed some light on all this?