navcat docs
    Preparing search index...

    Type Alias NavMesh

    A navigation mesh based on tiles of convex polygons

    type NavMesh = {
        linkIndexPool: IndexPool;
        links: NavMeshLink[];
        nodeIndexPool: IndexPool;
        nodes: NavMeshNode[];
        offMeshConnectionAttachments: Record<string, OffMeshConnectionAttachment>;
        offMeshConnectionIndexPool: IndexPool;
        offMeshConnections: Record<string, OffMeshConnection>;
        offMeshConnectionSequenceCounter: number;
        origin: Vec3;
        tileColumnToTileIds: Record<string, number[]>;
        tileHeight: number;
        tileIndexPool: IndexPool;
        tilePositionToSequenceCounter: Record<string, number>;
        tilePositionToTileId: Record<string, number>;
        tiles: Record<string, NavMeshTile>;
        tileWidth: number;
    }
    Index

    Properties

    linkIndexPool: IndexPool

    Pool for link indices

    links: NavMeshLink[]

    Global links. Check 'allocated' for whether the link is in use.

    nodeIndexPool: IndexPool

    Pool for node indices

    nodes: NavMeshNode[]

    Global nodes

    offMeshConnectionAttachments: Record<string, OffMeshConnectionAttachment>

    Off mesh connection attachments

    offMeshConnectionIndexPool: IndexPool

    Pool for off mesh connection indices

    offMeshConnections: Record<string, OffMeshConnection>

    Off mesh connection definitions

    offMeshConnectionSequenceCounter: number

    The off mesh connection sequence counter

    origin: Vec3

    The world space origin of the navigation mesh's tiles

    tileColumnToTileIds: Record<string, number[]>

    Map of tile column hashes to array of tile ids in that column

    tileHeight: number

    The height of each tile along the z axis

    tileIndexPool: IndexPool

    Pool for tile indices

    tilePositionToSequenceCounter: Record<string, number>

    Map of tile position hashes to sequence counter

    tilePositionToTileId: Record<string, number>

    Map of tile position hashes to tile ids

    tiles: Record<string, NavMeshTile>

    Map of tile ids to tiles

    tileWidth: number

    The width of each tile along the x axis