ソースを参照

* Fix issue 526

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9989 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
Sha..rd 13 年 前
コミット
ffa0639580
1 ファイル変更19 行追加0 行削除
  1. 19 0
      engine/src/core/com/jme3/input/ChaseCamera.java

+ 19 - 0
engine/src/core/com/jme3/input/ChaseCamera.java

@@ -752,6 +752,25 @@ public class ChaseCamera implements ActionListener, AnalogListener, Control {
     public void setZoomSensitivity(float zoomSensitivity) {
         this.zoomSensitivity = zoomSensitivity;
     }
+    
+    /**
+     * Returns the rotation speed when the mouse is moved.
+     *
+     * @return the rotation speed when the mouse is moved.
+     */
+    public float getRotationSpeed() {
+        return rotationSpeed;
+    }
+
+    /**
+     * Sets the rotate amount when user moves his mouse, the lower the value,
+     * the slower the camera will rotate. default is 1.
+     *
+     * @param rotationSpeed Rotation speed on mouse movement, default is 1.
+     */
+    public void setRotationSpeed(float rotationSpeed) {
+        this.rotationSpeed = rotationSpeed;
+    }
 
     /**
      * Sets the default distance at start of applicaiton