Hi guys,
Firstly, loving the course and eagerly look forwards to each new video. Having tried following along with a few YouTube tutorial series, which are very similar in structure and approach, I can say that the pacing and explanations given here set you guys above the rest.
My question is why are we using Lerp instead of RotateTowards in this instance?
//Official solution
stateMachine.transform.rotation = Quaternion.Lerp(
stateMachine.transform.rotation,
Quaternion.LookRotation(movement),
stateMachine.LookRotateSmoothValue * deltaTime);
//Another approach
stateMachine.transform.rotation = Quaternion.RotateTowards(
stateMachine.transform.rotation,
Quaternion.LookRotation(movement),
stateMachine.LookRotateSmoothValue * deltaTime);
The other tutorials implied that RotateTowards was somehow better but never really explained how.
Is there a major difference or just a matter of preference?
Thanks for your help and these awesome videos!
Edit: For some reason it work accept the video unique tag in the tags field. 9_BM_UTP
Sorry if this has been defaulted to the wrong thread