Weird Behaviour with brackeys third person tutorial

Hi!

I followed Brackey’s Third Person Controller tutorial perfectly and indeed everything is mostly working.

I noticed a strange behavior where when turning to left and moving the camera at the same time (Like strafing sideways while pointing to a target) the character will spin forever.

I managed to narrow the problem to some type of issue with Math, SmoothDamp and the way Unity deals with angles, because only turning left and sometimes backpedaling has this issue, turning right and walking forward works perfectly 100% of the time.

Can someone help me fix this?

You can try adjusting this value:
if(direction.magnitude >= 0.1f)
try making it .25f and other values see if it helps. What version of unity was used in the tutorial and what version are you using?

@logicandchaos

I’m using 2020.1.3f1
Tutorial is 2019.3.9f1

Will try to mess around with magnitude, thanks.