How to use the babylonjs-gui.CylinderPanel function in babylonjs-gui

To help you get started, we’ve selected a few babylonjs-gui examples, based on popular ways it is used in public projects.

github brianzinn / react-babylonjs / src / CylinderPanel.ts View on Github external
create(scene: Scene): BabylonCylinderPanel {
    this.cylinderPanel = new BabylonCylinderPanel()

    if (this.props.margin) {
      // console.log("setting cylinder panel margin")
      this.cylinderPanel.margin = this.props.margin
    }

    if (this.props.orientation) {
      this.cylinderPanel.orientation = this.props.orientation
    }

    if (this.props.radius) {
      this.cylinderPanel.radius = this.props.radius
    }

    return this.cylinderPanel
  }