From 062861beea0643c49c3877906cde832507ee8bf3 Mon Sep 17 00:00:00 2001 From: "rem..om" Date: Sat, 16 Apr 2011 07:45:26 +0000 Subject: [PATCH] ChaseCamera : added a setUpVector method. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7246 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/input/ChaseCamera.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/engine/src/core/com/jme3/input/ChaseCamera.java b/engine/src/core/com/jme3/input/ChaseCamera.java index 1c2300da4..42c74f6c1 100644 --- a/engine/src/core/com/jme3/input/ChaseCamera.java +++ b/engine/src/core/com/jme3/input/ChaseCamera.java @@ -851,6 +851,22 @@ public class ChaseCamera implements ActionListener, AnalogListener, Control { public void setLookAtOffset(Vector3f lookAtOffset) { this.lookAtOffset = lookAtOffset; } + + /** + * Sets the up vector of the camera used for the lookAt on the target + * @param up + */ + public void setUpVector(Vector3f up){ + initialUpVec=up; + } + + /** + * Returns the up vector of the camera used for the lookAt on the target + * @return + */ + public Vector3f getUpVector(){ + return initialUpVec; + } /** *