I dont think I have done something wrong because I set a new scene, added one plane and added the untouched ThirdPersonController.
I took a video because it’s little hard to explain. If you face towards X Axes and then turning left, it does snap back to forward, turning right works fine.
Here is the video.
gosh, this is so fucking annoying.
Took me forever to figure this out because I thought I did something wrong.
How to fix this…?
Of course you can still move left, and if you walk/run enough, it doesnt snap, but sometimes it does it anyway
I am coming closer. Apperently, if you turn left, there is a PI BUG because of whatever reason, it wants to rotate with 3.141593 until the figure moved at least 90degree
from the ThirdPersonCharacter
float turnSpeed = Mathf.Lerp(m_StationaryTurnSpeed, m_MovingTurnSpeed, m_ForwardAmount); Debug.Log("turnSpeed: " + turnSpeed + " m_TurnAmount: " + m_TurnAmount); //transform.Rotate(0, m_TurnAmount * turnSpeed * Time.deltaTime, 0); // here is the bug
Unfortunately this annoying bug also applies to the AIThirdPersonController -__-
which cannot be fixed the way I fixed it for my MainCharacter because then I have to rewrite the entire rotation and facing to the target part…