setNavDestination
此内容尚不支持你的语言。
setNavDestination(
world,entity,target):void
Defined in: ai/nav/NavAgent.ts:66
Point a NavAgent at a world position and (re)arm it. Safe to call every frame (e.g. to chase a moving target) — the system only replans when the target actually moves or the repath timer elapses.
Parameters
Section titled “Parameters”entity
Section titled “entity”number
target
Section titled “target”Returns
Section titled “Returns”void