h1z1-server
    Preparing search index...

    Class NavManager

    Index

    Constructors

    Properties

    crowd: Crowd
    lastTimeCall: number = ...
    navmesh: NavMesh
    navMeshQuery: NavMeshQuery
    obstacleCount: number = 0
    obstaclesRequestsPending: number = 0
    tilecache: TileCache
    updateFrequency: number = ...

    Methods

    • Parameters

      • position: Float32Array
      • halfExtents: Vector3
      • yRotation: number = 0.0

      Returns BoxObstacle | null

    • Parameters

      • gamePos: Float32Array

      Returns CrowdAgent

    • Parameters

      • gamePos: Float32Array
      • radius: number = 0.5

      Returns CrowdAgent

    • Parameters

      • gamePos: Float32Array

      Returns any

    • Parameters

      • gamePos: Float32Array

      Returns Vector3

    • Parameters

      • origin: Float32Array
      • target: Float32Array

      Returns {
          hitEdgeIndex: number;
          hitNormal: Vector3;
          maxPath: number;
          path: number[];
          pathCost: number;
          status: number;
          success: boolean;
          t: number;
      }

      • hitEdgeIndex: number

        The index of the edge on the final polygon where the wall was hit.

      • hitNormal: Vector3

        The normal of the nearest wall hit.

      • maxPath: number

        The maximum number of polygons the path can contain.

      • path: number[]

        The reference ids of the visited polygons.

      • pathCost: number

        The cost of the path until hit.

      • status: number

        The status of the raycast.

      • success: boolean

        Whether the raycast was successful.

      • t: number

        The hit parameter.

    • Parameters

      • obstacle: BoxObstacle

      Returns void