Переглянути джерело

Made the DebugKeysAppState output something that you just have to copy paste into your code when outputing the position and rotation of the camera.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10733 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
rem..om 12 роки тому
батько
коміт
55b2afde82
1 змінених файлів з 4 додано та 0 видалено
  1. 4 0
      engine/src/core/com/jme3/app/DebugKeysAppState.java

+ 4 - 0
engine/src/core/com/jme3/app/DebugKeysAppState.java

@@ -108,6 +108,10 @@ public class DebugKeysAppState extends AbstractAppState {
                             + loc.x + ", " + loc.y + ", " + loc.z + ")");
                     System.out.println("Camera Rotation: " + rot);
                     System.out.println("Camera Direction: " + cam.getDirection());
+                    System.out.println("cam.setLocation(new Vector3f("
+                            + loc.x + "f, " + loc.y + "f, " + loc.z + "f));");
+                    System.out.println("cam.setRotation(new Quaternion(" + rot.getX() + "f, " +rot.getY()+ "f, " + rot.getZ() + "f, " + rot.getW() + "f));");
+                  
                 }
             } else if (name.equals(INPUT_MAPPING_MEMORY)) {
                 BufferUtils.printCurrentDirectMemory(null);