From 55b2afde82f2619b092db2fd821f0573da7bed41 Mon Sep 17 00:00:00 2001 From: "rem..om" Date: Thu, 18 Jul 2013 20:41:21 +0000 Subject: [PATCH] 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 --- engine/src/core/com/jme3/app/DebugKeysAppState.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engine/src/core/com/jme3/app/DebugKeysAppState.java b/engine/src/core/com/jme3/app/DebugKeysAppState.java index 2317c2833..8e7e3f943 100644 --- a/engine/src/core/com/jme3/app/DebugKeysAppState.java +++ b/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);