跳转到内容

BuildNavMeshOptions

此内容尚不支持你的语言。

Defined in: ai/nav/navmesh/build.ts:34

optional agentHeight?: number

Defined in: ai/nav/navmesh/build.ts:47

How much room an agent needs above the floor, in world pixels.


optional agentRadius?: number

Defined in: ai/nav/navmesh/build.ts:50

How wide the agent is. The mesh is pulled back from every wall by this, so routes over it clear the walls by construction.


optional areas?: readonly NavAreaBox[]

Defined in: ai/nav/navmesh/build.ts:68

Boxes of ground that cost more or less to cross — see NavArea.


cellHeight: number

Defined in: ai/nav/navmesh/build.ts:43

Voxel size vertically. Wants to be several times smaller than cellSize, because it is what decides whether two floors are one.


cellSize: number

Defined in: ai/nav/navmesh/build.ts:40

Voxel size in the ground plane. The finer it is, the closer the mesh hugs the geometry and the longer the bake takes.


optional links?: readonly NavLinkSegment[]

Defined in: ai/nav/navmesh/build.ts:66

Ways between places the ground does not join — see NavLink.


max: Vec3

Defined in: ai/nav/navmesh/build.ts:37


optional maxEdgeLength?: number

Defined in: ai/nav/navmesh/build.ts:57

How long a wall edge may get before it is split, in world pixels. 0 leaves them alone.


optional maxSimplificationError?: number

Defined in: ai/nav/navmesh/build.ts:54

How far, in world pixels, a simplified outline may stray from the raw one.


optional maxSlopeDegrees?: number

Defined in: ai/nav/navmesh/build.ts:45

Steepest ground an agent can stand on, in degrees from level.


optional maxVertsPerPoly?: number

Defined in: ai/nav/navmesh/build.ts:62

Corners a polygon may have. Six is the default this is tuned around.


min: Vec3

Defined in: ai/nav/navmesh/build.ts:36

The box of world to bake, in world pixels.


optional minRegionArea?: number

Defined in: ai/nav/navmesh/build.ts:60

Smallest patch of unreachable ground worth a polygon, in world pixels squared. Below this a stranded ledge is left out of the mesh entirely.


optional obstacles?: readonly NavObstacleBox[]

Defined in: ai/nav/navmesh/build.ts:64

Boxes that block without being geometry — see NavObstacle.


optional stepHeight?: number

Defined in: ai/nav/navmesh/build.ts:52

The tallest step an agent can walk up rather than round, in world pixels.