How do I make my AI turn to look at the player, but not move towards him?
I'm trying to make my AI look towards the player while talking, but I don't know how to make the AI do this without using Lookat, which is buggy and looks strange. I see that the Third Person Character script has a variable for stationary turn speed, but I can't find out how to make the AI turn in place.
Answer by Zynek · Oct 28, 2016 at 04:14 PM
Lookat is the way to go, what do you mean by "buggy" ? Are you making the whole character look at player or just the head ?
I'm making the entire character turn to look at the player. I would like to use the smooth animations that Unity has that let you turn the player you're controlling turn in place, but I don't know how.
Sounds like youre forgetting to interpolate betweent current rotation and LookAt rotation. I cannot tell anything more out of what youre describing.
Your answer
Follow this Question
Related Questions
Off Mesh Link - Limiting access to certain agents 2 Answers
Best way of creating unity car ai that wonders around searching for player 1 Answer
NavmeshAgent too far away after Unity Update 2 Answers
Typical baking time for navigation on large terrains? 1 Answer
NavMesh Agent Navigating Instantiated Environment? 0 Answers