Navigation
此内容尚不支持你的语言。
Defined in: ai/nav/Navigation.ts:17
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Navigation():
Navigation
Returns
Section titled “Returns”Navigation
Properties
Section titled “Properties”surface
Section titled “surface”surface:
NavSurface|null=null
Defined in: ai/nav/Navigation.ts:19
Where agents may walk, or null until something builds and installs it.
Methods
Section titled “Methods”findWorldPath()
Section titled “findWorldPath()”findWorldPath(
from,to,opts?):Vec3[] |null
Defined in: ai/nav/Navigation.ts:33
Plan a world-space route, or null if there is no surface or no way. See NavSurface.findWorldPath for what the waypoints carry.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Vec3[] | null
hasSurface()
Section titled “hasSurface()”hasSurface():
boolean
Defined in: ai/nav/Navigation.ts:25
Returns
Section titled “Returns”boolean
setSurface()
Section titled “setSurface()”setSurface(
surface):void
Defined in: ai/nav/Navigation.ts:21
Parameters
Section titled “Parameters”surface
Section titled “surface”NavSurface | null
Returns
Section titled “Returns”void