Skip to content

five-on-it / packages/ai/src/system / NpcPath

Interface: NpcPath ​

Defined in: packages/ai/src/system.ts:111

The path an NPC follows: waypoints as x, z pairs, the one it heads for, where it was planned to.

Properties ​

complete ​

complete: boolean

Defined in: packages/ai/src/system.ts:121

Whether the plan reaches the goal (an incomplete one ends nearest to it).


goalX ​

goalX: number

Defined in: packages/ai/src/system.ts:117

The goal the plan was made for (m).


goalZ ​

goalZ: number

Defined in: packages/ai/src/system.ts:119

The goal the plan was made for (m).


index ​

index: number

Defined in: packages/ai/src/system.ts:115

The waypoint headed for.


points ​

points: Float32Array

Defined in: packages/ai/src/system.ts:113

The waypoints, x and z interleaved.