Interface INavMeshParameters
borderSize?: number;
ch: number;
cs: number;
detailSampleDist: number;
detailSampleMaxError: number;
maxEdgeLen: number;
maxSimplificationError: number;
maxVertsPerPoly: number;
mergeRegionArea: number;
minRegionArea: number;
tileSize?: number;
walkableClimb: number;
walkableHeight: number;
walkableRadius: number;
walkableSlopeAngle: number;
}
Properties
Optionalborder Size
The size of the non-navigable border around the heightfield.
ch
The y-axis cell size to use for fields. [Limit: > 0] [Units: wu]
cs
The xz-plane cell size to use for fields. [Limit: > 0] [Units: wu]
detail Sample Dist
Sets the sampling distance to use when generating the detail mesh. (For height detail only.) [Limits: 0 or >= 0.9] [Units: wu]
detail Sample Max Error
The maximum distance the detail mesh surface should deviate from heightfield data. (For height detail only.) [Limit: >=0] [Units: wu]
max Edge Len
The maximum allowed length for contour edges along the border of the mesh. [Limit: >=0] [Units: vx]
max Simplification Error
The maximum distance a simplified contour's border edges should deviate the original raw contour. [Limit: >=0] [Units: vx]
max Verts Per Poly
The maximum number of vertices allowed for polygons generated during the contour to polygon conversion process. [Limit: >= 3]
merge Region Area
Any regions with a span count smaller than this value will, if possible, be merged with larger regions. [Limit: >=0] [Units: vx]
min Region Area
The minimum number of cells allowed to form isolated island areas. [Limit: >=0] [Units: vx]
Optionaltile Size
If using obstacles, the navmesh must be subdivided internally by tiles. This member defines the tile cube side length in world units. If no obstacles are needed, leave it undefined or 0.
walkable Climb
Maximum ledge height that is considered to still be traversable. [Limit: >=0] [Units: vx]
walkable Height
Minimum floor to 'ceiling' height that will still allow the floor area to be considered walkable. [Limit: >= 3] [Units: vx]
walkable Radius
The distance to erode/shrink the walkable area of the heightfield away from obstructions. [Limit: >=0] [Units: vx]
walkable Slope Angle
The maximum slope that is considered walkable. [Limits: 0 <= value < 90] [Units: Degrees]
Configures the navigation mesh creation