Added move speed and rotate speed getters in FlyByCamera

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9253 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
sky..ok 13 years ago
parent ee69225ad0
commit 0af3e46a45
  1. 16
      engine/src/core/com/jme3/input/FlyByCamera.java

@ -111,6 +111,14 @@ public class FlyByCamera implements AnalogListener, ActionListener {
this.moveSpeed = moveSpeed;
}
/**
* Gets the move speed. The speed is given in world units per second.
* @return moveSpeed
*/
public float getMoveSpeed(){
return moveSpeed;
}
/**
* Sets the rotation speed.
* @param rotationSpeed
@ -119,6 +127,14 @@ public class FlyByCamera implements AnalogListener, ActionListener {
this.rotationSpeed = rotationSpeed;
}
/**
* Gets the move speed. The speed is given in world units per second.
* @return rotationSpeed
*/
public float getRotationSpeed(){
return rotationSpeed;
}
/**
* @param enable If false, the camera will ignore input.
*/

Loading…
Cancel
Save