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
This commit is contained in:
rem..om 2013-07-18 20:41:21 +00:00
parent 20123c74ea
commit 55b2afde82

View File

@ -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);