NavMeshObstaclesManager manages the common objects shared by objects having a pathfinding behavior: In particular, the obstacles behaviors are required to declare themselves (see NavMeshObstaclesManager.addObstacle) to the manager of their associated container (see NavMeshObstaclesManager.getManager).

Constructors

Properties

cellDepth: number = 10
cellHeightFor2D: 5 = 5
characters: Set<NavMeshCharacterRuntimeBehavior> = ...
crowd: null | Crowd = null
debuggerRenderer: null | NavMeshDebuggerPixiRenderer = null
hasStepped: boolean = false
inverseSpeedScaleY: number = 1
is3D: boolean = false
isFirstFrame: boolean = true
isNavMeshDirty: boolean = true
navMesh: null | NavMesh = null
obstacles: Set<NavMeshObstacleRuntimeBehavior> = ...
speedScaleY: number = 1
stairHeightMax: number = 20
timeSinceLastNavMeshLastRebuild: number = 1
walkableDepth: number = 150
walkableRadius: number = -1
navMeshConfig: Partial<{
    borderSize: number;
    bounds?: [bbMin: Vector3Tuple, bbMax: Vector3Tuple];
    buildBvTree?: boolean;
    ch: number;
    cs: number;
    detailSampleDist: number;
    detailSampleMaxError: number;
    maxEdgeLen: number;
    maxSimplificationError: number;
    maxVertsPerPoly: number;
    mergeRegionArea: number;
    minRegionArea: number;
    offMeshConnections?: OffMeshConnectionParams[];
    walkableClimb: number;
    walkableHeight: number;
    walkableRadius: number;
    walkableSlopeAngle: number;
}> = ...

Type declaration

  • borderSize: number

    The size of the non-navigable border around the heightfield. [Limit: >=0] [Units: vx]

    Default

    0
    
  • Optional bounds?: [bbMin: Vector3Tuple, bbMax: Vector3Tuple]

    The minimum and maximum bounds of the heightfield's AABB in world units. If not provided, the bounding box will be calculated from the input positions and indices

  • Optional buildBvTree?: boolean

    Default

    true
    
  • ch: number

    The y-axis cell size to use for fields. Limit: > 0] [Units: wu]

    Default

    0.2
    
  • cs: number

    The xz-plane cell size to use for fields. [Limit: > 0] [Units: wu]

    Default

    0.2
    
  • detailSampleDist: number

    Sets the sampling distance to use when generating the detail mesh. (For height detail only.) [Limits: 0 or >= 0.9] [Units: wu]

    Default

    6
    
  • detailSampleMaxError: number

    The maximum distance the detail mesh surface should deviate from heightfield data. (For height detail only.) [Limit: >=0] [Units: wu]

    Default

    1
    
  • maxEdgeLen: number

    The maximum allowed length for contour edges along the border of the mesh. [Limit: >=0] [Units: vx]

    Default

    12
    
  • maxSimplificationError: number

    The maximum distance a simplfied contour's border edges should deviate the original raw contour. [Limit: >=0] [Units: vx]

    Default

    1.3
    
  • maxVertsPerPoly: number

    The maximum number of vertices allowed for polygons generated during the be merged with larger regions. [Limit: >=0] [Units: vx]

    Default

    6
    
  • mergeRegionArea: number

    Any regions with a span count smaller than this value will, if possible, be merged with larger regions. [Limit: >=0] [Units: vx]

    Default

    20
    
  • minRegionArea: number

    The minimum number of cells allowed to form isolated island areas. [Limit: >=0] [Units: vx]

    Default

    8
    
  • Optional offMeshConnections?: OffMeshConnectionParams[]
  • walkableClimb: number

    Maximum ledge height that is considered to still be traversable. [Limit: >=0] [Units: vx]

    Default

    2
    
  • walkableHeight: number

    Minimum floor to 'ceiling' height that will still allow the floor area to be considered walkable. [Limit: >= 3] [Units: vx]

    Default

    2
    
  • walkableRadius: number

    The distance to erode/shrink the walkable area of the heightfield away from obstructions. [Limit: >=0] [Units: vx]

    Default

    0.5
    
  • walkableSlopeAngle: number

    The maximum slope that is considered walkable. [Limits: 0 <= value < 90] [Units: Degrees]

    Default

    60
    

Methods