Как сделать такую ​​боковую панель на 3d-сцене, чтобы она не скрывала сцену? - PullRequest
0 голосов
/ 23 апреля 2020

Как сделать такую ​​панель настроек, чтобы вы могли видеть сцену с 3d фигурами, как на картинке? моя сцена находится под панелью. Я создаю BorderPane, и она полностью закрывает сцену. enter image description here

enter image description here

Мой код на втором рисунке, но я не знаю, как сделать сцену видимой

 RadioButton rdoEasy = new RadioButton("Easy");
    RadioButton rdoMedium = new RadioButton("Medium");
    RadioButton rdoHard = new RadioButton("Hard");
    var groupDifficulty = new ToggleGroup();
    groupDifficulty.getToggles().addAll(
            rdoEasy,
            rdoMedium,
            rdoHard
    );
    ToolBar toolBar = new ToolBar();
    toolBar.setOrientation(Orientation.VERTICAL);
    toolBar.getItems().addAll(
            new Separator(),
            rdoEasy,
            rdoMedium,
            rdoHard,
            new Separator()
    );
    BorderPane borderPane = new BorderPane();
    borderPane.setLeft(toolBar);
    borderPane.setCenter(group);
    borderPane.getCenter();
    Scene scene = new Scene(borderPane, orgSceneX, orgSceneY,true,SceneAntialiasing.BALANCED);
...