API

Function CreateTiledGroundVertexData

  • Creates the VertexData for a TiledGround by subdividing the ground into tiles

    Parameters

    • options: {
          precision?: { h: number; w: number };
          subdivisions?: { h: number; w: number };
          xmax: number;
          xmin: number;
          zmax: number;
          zmin: number;
      }

      an object used to set the following optional parameters for the Ground

      • xmin ground minimum X coordinate, default -1
      • zmin ground minimum Z coordinate, default -1
      • xmax ground maximum X coordinate, default 1
      • zmax ground maximum Z coordinate, default 1
      • subdivisions a javascript object \{w: positive integer, h: positive integer\}, w and h are the numbers of subdivisions on the ground width and height creating 'tiles', default \{w: 6, h: 6\}
      • precision a javascript object \{w: positive integer, h: positive integer\}, w and h are the numbers of subdivisions on the tile width and height, default \{w: 2, h: 2\}

    Returns VertexData

    the VertexData of the TiledGround