Before the lecture I tried using transform.LookAt(targetPosition); which seemed to have similar results. Is there a reason one shouldn’t use this?
3 Likes
transform.LookAt(); works exactly the same as setting the transform.forward so yup that works as well.
Basically the only difference is transform.forward requires a direction whereas transform.LookAt(); requires a target.
So use whichever method you prefer.
4 Likes
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.