Răsfoiți Sursa

Add isEnabled to PhysicsControl interface

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10823 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
iwg..ic 12 ani în urmă
părinte
comite
6a39a6b5ba

+ 7 - 1
engine/src/bullet-common/com/jme3/bullet/control/PhysicsControl.java

@@ -42,7 +42,7 @@ public interface PhysicsControl extends Control {
 
     /**
      * Only used internally, do not call.
-     * @param space 
+     * @param space
      */
     public void setPhysicsSpace(PhysicsSpace space);
 
@@ -56,4 +56,10 @@ public interface PhysicsControl extends Control {
      * @param state
      */
     public void setEnabled(boolean state);
+
+    /**
+     * Returns the current enabled state of the physics control
+     * @return current enabled state
+     */
+    public boolean isEnabled();
 }