NavMeshAgent face same direction as destination point in Unity

时间:2019-05-31 11:24:37

标签: c# unity3d path-finding navmesh

I have a NavMeshAgent NPC that walks correctly to its destination position. However, when it stops, it faces the walking direction, while I would like to have it turn to the same direction as the destination point, in the most natural way as my NPC is a human.

enter image description here

Is there a way to have the NPC, while walking to the destination point, also to set a destination rotation?

1 个答案:

答案 0 :(得分:0)

您可以设置和空闲动画。 然后,您可以使用此动画触发功能查看

https://docs.unity3d.com/Manual/animeditor-AnimationEvents.html