Quellcode durchsuchen

Fixed zoomSensitivity in chaseCamera, removed the zoomSpeed.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10490 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
rem..om vor 12 Jahren
Ursprung
Commit
cffb44f3d0
1 geänderte Dateien mit 3 neuen und 4 gelöschten Zeilen
  1. 3 4
      engine/src/core/com/jme3/input/ChaseCamera.java

+ 3 - 4
engine/src/core/com/jme3/input/ChaseCamera.java

@@ -56,12 +56,11 @@ public class ChaseCamera implements ActionListener, AnalogListener, Control {
     protected float maxVerticalRotation = FastMath.PI / 2;
     protected float minDistance = 1.0f;
     protected float maxDistance = 40.0f;
-    protected float distance = 20;
-    protected float zoomSpeed = 2f;
+    protected float distance = 20;    
     protected float rotationSpeed = 1.0f;
     protected float rotation = 0;
     protected float trailingRotationInertia = 0.05f;
-    protected float zoomSensitivity = 5f;
+    protected float zoomSensitivity = 2f;
     protected float rotationSensitivity = 5f;
     protected float chasingSensitivity = 5f;
     protected float trailingSensitivity = 0.5f;
@@ -297,7 +296,7 @@ public class ChaseCamera implements ActionListener, AnalogListener, Control {
         }
 
         zooming = true;
-        targetDistance += value * zoomSpeed;
+        targetDistance += value * zoomSensitivity;
         if (targetDistance > maxDistance) {
             targetDistance = maxDistance;
         }