Using Quaternion.LookRotation() and Animator.SetLookAtPosition() methods to make characters follow an object with their gaze

Sometimes you need a character to look at an object in the game, for instance, at the camera. To do so, we can use two methods: Quaternion.LookRotation() and Animator.SetLookAtPosition(). We will cover both in this recipe (the second one is covered in the There's more... section).

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.123.106