Bitbybit Docs
    Preparing search index...

    Class CreateBoxDto (Inputs.BabylonMeshBuilder)

    babylon.meshBuilder.createBox 使用:以原点为中心的长方体的三个尺寸,外加每个构建器都接受的面朝向和阴影标志。

    Index

    Constructors

    • Parameters

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

      Returns CreateBoxDto

    Properties

    width: number

    沿 X 的完整尺寸,以场景单位表示

    1
    
    depth: number

    沿 Z 的完整尺寸,以场景单位表示

    1
    
    height: number

    沿 Y 的完整尺寸,以场景单位表示

    1
    
    sideOrientation: sideOrientationEnum

    绘制每个面的哪一侧:正面、背面或两者;单面网格从背后看不可见

    frontside
    
    enableShadows: boolean

    为 true 时,网格从启用了阴影的灯光投射并接收阴影

    true