Bitbybit Docs
    Preparing search index...

    Class CreateCubeDto (Inputs.BabylonMeshBuilder)

    babylon.meshBuilder.createCube 提供以原点为中心的立方体的边长。

    Index

    Constructors

    Properties

    size: number

    每条边的长度,以场景单位表示

    1
    
    sideOrientation: sideOrientationEnum

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

    frontside
    
    enableShadows: boolean

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

    true