Hi to all
In my game i have a npc model that control by a script which use unity navmesh for navigation . my npc has a child game object with name "AIHead" for controling npc head.i want my npc be able to look at other gameobjects(i.e. enemy)by rotating her/his head since itself goes in different direction.
Is it possible by this line of code:
Headobject.lookat(target.position);
↧