纳金网
标题:
一个寻路 NavMesh 的问题
[打印本页]
作者:
may
时间:
2013-4-30 20:43
标题:
一个寻路 NavMesh 的问题
我在人物身上绑定 NavMeshAgent 组件
PathFinder = gameObject.GetComponent<NavMeshAgent>();
之后 在update的时候调用 PathFinder.SetDestination(movePoint);
但是会报错
SetDestination can only be called on an active agent that has been placed on a navmesh
我google了一下 发现别人也有这样的问题 但是似乎没有搜到答案
作者:
penguin_ku
时间:
2013-11-12 10:24
penguin_ku 发表于 2013-11-12 09:47
你把代理给烘焙了
回答错了,是因为人物站到了未被烘焙为walkable的区域。重新 洪培图
欢迎光临 纳金网 (http://go.narkii.com/club/)
Powered by Discuz! X2.5