if (name.equals("SIMPLEAPP_Exit")) {
stop();
} else if (name.equals("SIMPLEAPP_CameraPos")) {
if (cam != null) {
Vector3f loc = cam.getLocation();
Quaternion rot = cam.getRotation();
System.out.println("Camera Position: ("
+ loc.x + ", " + loc.y + ", " + loc.z + ")");
System.out.println("Camera Rotation: " + rot);
System.out.println("Camera Direction: " + cam.getDirection());
}
} else if (name.equals("SIMPLEAPP_Memory")) {
BufferUtils.printCurrentDirectMemory(null);
}
else if (name.equals("SIMPLEAPP_ResetPos")) {
cam.setRotation(new Quaternion(0,1,0,0));
cam.setLocation(new Vector3f(3, 3, 3));
cam.lookAt(new Vector3f(0,0,0), new Vector3f(0,0,1));
}
}