Answers for "Quaternion.Slerp and Quaternion.Euler problem"
http://answers.unity.com/questions/248903/quaternionslerp-and-quaternioneuler-problem.html
The latest answers for the question "Quaternion.Slerp and Quaternion.Euler problem"Answer by Yonlop
http://answers.unity.com/answers/248910/view.html
Okay nevermind. I got it. Just specified the x and z initially and it works.
var newRotation = Quaternion.LookRotation(targetObj.position - head.transform.position);
newRotation.x = 0;
newRotation.z = 0;
head.transform.rotation = Quaternion.Slerp(head.transform.rotation, newRotation, Time.deltaTime * speed);
I'm just wondering if there is an overall implication to how the object react to other scripts, but it looks okay for now.Sun, 06 May 2012 11:47:18 GMTYonlop