API

Function CreateGroundVertexData

  • Creates the VertexData for a Ground

    Parameters

    • options: {
          height?: number;
          size?: number;
          subdivisions?: number;
          subdivisionsX?: number;
          subdivisionsY?: number;
          width?: number;
      }

      an object used to set the following optional parameters for the Ground, required but can be empty

      • width the width (x direction) of the ground, optional, default 1
      • height the height (z direction) of the ground, optional, default 1
      • subdivisions the number of subdivisions per side, optional, default 1
      • subdivisionsX the number of subdivisions in the x direction, overrides options.subdivisions, optional, default undefined
      • subdivisionsY the number of subdivisions in the y direction, overrides options.subdivisions, optional, default undefined

    Returns VertexData

    the VertexData of the Ground