use of javafx.scene.transform.Transform in project FXyzLib by Birdasaur.
the class Skybox method startTimer.
private void startTimer() {
timer = new AnimationTimer() {
@Override
public void handle(long now) {
Transform ct = (camera != null) ? camera.getLocalToSceneTransform() : null;
if (ct != null) {
affine.setTx(ct.getTx());
affine.setTy(ct.getTy());
affine.setTz(ct.getTz());
}
}
};
timer.start();
}
Aggregations