Bitbybit Docs
    Preparing search index...

    Class CreateGroundDto (Inputs.BabylonMeshBuilder)

    Feeds babylon.meshBuilder.createGround: the size of a flat ground in the XZ plane and how many cells it is divided into.

    Index

    Constructors

    • Parameters

      • Optionalwidth: number
      • Optionalheight: number
      • OptionalsubdivisionsX: number
      • OptionalsubdivisionsY: number
      • OptionalsideOrientation: sideOrientationEnum
      • OptionalenableShadows: boolean

      Returns CreateGroundDto

    Properties

    width: number

    Full size along X, in scene units

    10
    

    0

    Infinity

    1

    height: number

    Full size along Z, in scene units

    10
    

    0

    Infinity

    1

    subdivisionsX: number

    Number of cells along X; more matters only for deforming or lighting

    1
    

    0

    Infinity

    1

    subdivisionsY: number

    Number of cells along Z; more matters only for deforming or lighting

    1
    

    0

    Infinity

    1

    sideOrientation: sideOrientationEnum

    Which side of each face is drawn: the front, the back or both; single-sided meshes are invisible from behind

    doubleside
    
    enableShadows: boolean

    When true, the mesh casts and receives shadows from the lights that have them enabled

    true