Comments and answers for "Quaternion.Slerp problem..."
http://answers.unity.com/questions/453656/quaternionslerp-problem.html
The latest comments and answers for the question "Quaternion.Slerp problem..."Comment by smirlianos on smirlianos's answer
http://answers.unity.com/comments/453709/view.html
Oh yes! It was so simple! Thanks!Fri, 10 May 2013 13:09:30 GMTsmirlianosComment by smirlianos on smirlianos's answer
http://answers.unity.com/comments/453681/view.html
Now it doesn't turn at all!Fri, 10 May 2013 12:14:05 GMTsmirlianosAnswer by fafase
http://answers.unity.com/answers/453679/view.html
Time.time is not what you want there.
Time.time is 1 after 1s meaning that after 1 sec your rotation will occur instantly.
You may want to use `Time.deltaTime * rotSpeed` instead. With `rotSpeed` being there to regulate the speed of rotation.
Also you may want to try something like:
newRot= transform.rotation * Quaternion.Euler(0, 90, 0);
That would avoid all the if and simply add 90 degrees to the existing rotation.
EDIT:
It probably does not do anything because it should be :
newRot= playergraphic.transform.rotation * Quaternion.Euler(0, 90, 0);
playergraphic.transform.rotation = Quaternion.Slerp(playergraphic.transform.rotation, newRot, Time.time * RotSpeed);Fri, 10 May 2013 12:10:43 GMTfafase