From c6158bba68c92f70182009968f56b06bb32a178b Mon Sep 17 00:00:00 2001 From: Davis Rollman Date: Thu, 10 Jan 2019 16:23:26 -0500 Subject: [PATCH] Added getter and setter for LegacyApplication's speed (#986) --- .../java/com/jme3/app/SimpleApplication.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/jme3-core/src/main/java/com/jme3/app/SimpleApplication.java b/jme3-core/src/main/java/com/jme3/app/SimpleApplication.java index 01c04601c..5a1fab7a9 100644 --- a/jme3-core/src/main/java/com/jme3/app/SimpleApplication.java +++ b/jme3-core/src/main/java/com/jme3/app/SimpleApplication.java @@ -124,6 +124,23 @@ public abstract class SimpleApplication extends LegacyApplication { setSettings(settings); 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