navcat docs
    Preparing search index...

    Type Alias CompactHeightfield

    type CompactHeightfield = {
        areas: number[];
        borderSize: number;
        bounds: Box3;
        cellHeight: number;
        cells: CompactHeightfieldCell[];
        cellSize: number;
        distances: number[];
        height: number;
        maxDistance: number;
        maxRegions: number;
        spanCount: number;
        spans: CompactHeightfieldSpan[];
        walkableClimbVoxels: number;
        walkableHeightVoxels: number;
        width: number;
    }
    Index

    Properties

    areas: number[]

    array containing area id data, size = spanCount

    borderSize: number

    the AABB border size used during the build of the heightfield

    bounds: Box3

    the heightfield bounds in world space

    cellHeight: number

    the height of each cell

    array of cells, size = width*height

    cellSize: number

    the size of each cell

    distances: number[]

    array containing distance field data, size = spanCount

    height: number

    the height of the heightfield (along z axis in cell units)

    maxDistance: number

    the maxiumum distance value of any span within the heightfield

    maxRegions: number

    the maximum region id of any span within the heightfield

    spanCount: number

    the number of spans in the heightfield

    array of spans, size = spanCount

    walkableClimbVoxels: number

    the walkable climb used during the build of the heightfield

    walkableHeightVoxels: number

    the walkable height used during the build of the heightfield

    width: number

    the width of the heightfield (along x axis in cell units)