ChaseCamera : added a setUpVector method.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7246 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
rem..om 14 years ago
parent 593d9bf35a
commit 062861beea
  1. 16
      engine/src/core/com/jme3/input/ChaseCamera.java

@ -852,6 +852,22 @@ public class ChaseCamera implements ActionListener, AnalogListener, Control {
this.lookAtOffset = 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;
}
/** /**
* *
* @param invertYaxis * @param invertYaxis

Loading…
Cancel
Save