setNavDestination
setNavDestination(
world,entity,target):void
Defined in: ai/nav/NavAgent.ts:74
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”number
number
number
Returns
Section titled “Returns”void