Bitbybit Docs
    Preparing search index...

    Class CreateBoxDto (Inputs.BabylonMeshBuilder)

    Feeds babylon.meshBuilder.createBox: the three sizes of a box centered on the origin, plus the side orientation and shadow flag every builder takes.

    Index

    Constructors

    • Parameters

      • Optionalwidth: number
      • Optionaldepth: number
      • Optionalheight: number
      • OptionalsideOrientation: sideOrientationEnum
      • OptionalenableShadows: boolean

      Returns CreateBoxDto

    Properties

    width: number

    Full size along X, in scene units

    1
    
    depth: number

    Full size along Z, in scene units

    1
    
    height: number

    Full size along Y, in scene units

    1
    
    sideOrientation: sideOrientationEnum

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

    frontside
    
    enableShadows: boolean

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

    true