Fixed zoomSensitivity in chaseCamera, removed the zoomSpeed.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10490 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
995763d114
commit
cffb44f3d0
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user