diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/BoardAppState.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/BoardAppState.java index e85bedb..2196dda 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/BoardAppState.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/BoardAppState.java @@ -72,7 +72,7 @@ public class BoardAppState extends MonopolyAppState { */ private PopUpManager popUpManager;; - private Vector3f currentTarget = new Vector3f(0f,0,0f); + private Vector3f currentTarget = new Vector3f(-10f,0,-10f); /** * Initializes the state by setting up the sky, lights, and other visual components. @@ -86,6 +86,10 @@ public class BoardAppState extends MonopolyAppState { super.initialize(stateManager, application); popUpManager = new PopUpManager(getApp()); viewNode.attachChild(sceneNode); + + //TODO remove this only for camera testing + adjustCamera(); + setupLights(); setupSky(); } @@ -129,7 +133,7 @@ public class BoardAppState extends MonopolyAppState { final float x = mx - cos; final float y = my - sin; final Camera camera = getApp().getCamera(); - camera.setLocation(new Vector3f(30,20,0)); + camera.setLocation(new Vector3f(0,10,0)); camera.lookAt(new Vector3f(getCurrentTarget()), Vector3f.UNIT_Y); camera.update(); @@ -160,7 +164,7 @@ public class BoardAppState extends MonopolyAppState { super.update(tpf); //TODO remove this only for camera testing cameraAngle += TWO_PI * 0.05f * tpf; - adjustCamera(); + // adjustCamera(); } /** diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/MonopolyApp.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/MonopolyApp.java index 960b0ea..d4a085e 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/MonopolyApp.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/MonopolyApp.java @@ -292,7 +292,7 @@ public class MonopolyApp extends SimpleApplication implements MonopolyClient, Ga final StatsAppState stats = new StatsAppState(guiNode, normalFont); stateManager.attach(stats); } - flyCam.setEnabled(false); + flyCam.setEnabled(true); stateManager.detach(stateManager.getState(StatsAppState.class)); stateManager.detach(stateManager.getState(DebugKeysAppState.class));