Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

Is it possible to rotate a child object regardless of the parent rotation ?

$
0
0
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);

Viewing all articles
Browse latest Browse all 171066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>