Код: Выделить всё
physicsComponent.setFixtureDef(new FixtureDef().shape(new CircleShape((float) hitBoxRadius)));я получаю сообщение об ошибке, сообщающее, что оно не экспортировано:
Код: Выделить всё
package com.almasb.fxgl.physics.box2d.collision.shapes is not visible
import com.almasb.fxgl.physics.box2d.collision.shapes.CircleShape;
^
(package com.almasb.fxgl.physics.box2d.collision.shapes is declared in module com.almasb.fxgl.entity, which does not export it)
Код: Выделить всё
module com.lifedrained.marblesimulationreborn {
requires javafx.controls;
requires javafx.fxml;
requires org.controlsfx.controls;
requires com.dlsc.formsfx;
requires net.synedra.validatorfx;
requires org.kordamp.ikonli.javafx;
requires org.kordamp.bootstrapfx.core;
requires com.almasb.fxgl.core;
requires com.almasb.fxgl.entity;
requires com.almasb.fxgl.all;
opens com.lifedrained.marblesimulationreborn to javafx.fxml;
exports com.lifedrained.marblesimulationreborn;
exports com.lifedrained.marblesimulationreborn.libs to com.almasb.fxgl.all;
}
Подробнее здесь: https://stackoverflow.com/questions/787 ... ot-visible
Мобильная версия