Answers for "Problem turning character on a sloped surface."
http://answers.unity.com/questions/1379240/problem-turning-character-on-a-sloped-surface.html
The latest answers for the question "Problem turning character on a sloped surface."Answer by Bowbowis
http://answers.unity.com/answers/1379567/view.html
I think I figured it out. The solution seems to have been changing:
transform.rotation = Quaternion.FromToRotation(Vector3.forward, turnDirection) * Quaternion.FromToRotation(Vector3.up, transform.up);
and
transform.rotation = Quaternion.FromToRotation(Vector3.forward, turnDirection) * Quaternion.FromToRotation(Vector3.up, contact.normal);
to
transform.rotation = transform.rotation * Quaternion.FromToRotation (prevDirection, turnDirection);
and
transform.rotation = Quaternion.FromToRotation (transform.up, contact.normal) * transform.rotation;
respectively.Sat, 15 Jul 2017 21:44:14 GMTBowbowis