Added getter and setter for LegacyApplication's speed (#986)

accellbaker
Davis Rollman 6 years ago committed by Stephen Gold
parent 13d00e0df3
commit c6158bba68
  1. 17
      jme3-core/src/main/java/com/jme3/app/SimpleApplication.java

@ -125,6 +125,23 @@ public abstract class SimpleApplication extends LegacyApplication {
super.start(); super.start();
} }
/**
* Returns the applications speed.
*
* @return The speed of the application.
*/
public float getSpeed() {
return speed;
}
/**
* Changes the application speed. 0.0f prevents the application from updating.
* @param speed The speed to set.
*/
public void setSpeed(float speed) {
this.speed = speed;
}
/** /**
* Retrieves flyCam * Retrieves flyCam
* @return flyCam Camera object * @return flyCam Camera object

Loading…
Cancel
Save