BuildNavMeshOptions
Defined in: ai/nav/navmesh/build.ts:34
Properties
Section titled “Properties”agentHeight?
Section titled “agentHeight?”
optionalagentHeight?:number
Defined in: ai/nav/navmesh/build.ts:47
How much room an agent needs above the floor, in world pixels.
agentRadius?
Section titled “agentRadius?”
optionalagentRadius?: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.
areas?
Section titled “areas?”
optionalareas?: readonlyNavAreaBox[]
Defined in: ai/nav/navmesh/build.ts:68
Boxes of ground that cost more or less to cross — see NavArea.
cellHeight
Section titled “cellHeight”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
Section titled “cellSize”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.
links?
Section titled “links?”
optionallinks?: readonlyNavLinkSegment[]
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
maxEdgeLength?
Section titled “maxEdgeLength?”
optionalmaxEdgeLength?: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.
maxSimplificationError?
Section titled “maxSimplificationError?”
optionalmaxSimplificationError?:number
Defined in: ai/nav/navmesh/build.ts:54
How far, in world pixels, a simplified outline may stray from the raw one.
maxSlopeDegrees?
Section titled “maxSlopeDegrees?”
optionalmaxSlopeDegrees?:number
Defined in: ai/nav/navmesh/build.ts:45
Steepest ground an agent can stand on, in degrees from level.
maxVertsPerPoly?
Section titled “maxVertsPerPoly?”
optionalmaxVertsPerPoly?: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.
minRegionArea?
Section titled “minRegionArea?”
optionalminRegionArea?: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.
obstacles?
Section titled “obstacles?”
optionalobstacles?: readonlyNavObstacleBox[]
Defined in: ai/nav/navmesh/build.ts:64
Boxes that block without being geometry — see NavObstacle.
stepHeight?
Section titled “stepHeight?”
optionalstepHeight?:number
Defined in: ai/nav/navmesh/build.ts:52
The tallest step an agent can walk up rather than round, in world pixels.