* Fix issue 526
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9989 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
2d69a5d159
commit
ffa0639580
@ -753,6 +753,25 @@ public class ChaseCamera implements ActionListener, AnalogListener, Control {
|
|||||||
this.zoomSensitivity = 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
|
* Sets the default distance at start of applicaiton
|
||||||
* @param defaultDistance
|
* @param defaultDistance
|
||||||
|
Loading…
x
Reference in New Issue
Block a user