diff --git a/src/test/java/com/jme3/recast4j/demo/states/TogglePhysicsDebugState.java b/src/test/java/com/jme3/recast4j/demo/states/TogglePhysicsDebugState.java index ae2b8d1..dcec266 100644 --- a/src/test/java/com/jme3/recast4j/demo/states/TogglePhysicsDebugState.java +++ b/src/test/java/com/jme3/recast4j/demo/states/TogglePhysicsDebugState.java @@ -16,12 +16,12 @@ public class TogglePhysicsDebugState extends BaseAppState implements ActionListe private static final String TOGGLE_PHYSICS_DEBUG = "TOGGLE_PHYSICS_DEBUG"; - private BulletAppState physics; + private BulletAppState bulletAppState; private InputManager inputManager; @Override protected void initialize(Application app) { - this.physics = getState(BulletAppState.class, true); + this.bulletAppState = getState(BulletAppState.class, true); this.inputManager = app.getInputManager(); } @@ -44,8 +44,8 @@ protected void onDisable() { @Override public void onAction(String name, boolean isPressed, float tpf) { if (name.equals(TOGGLE_PHYSICS_DEBUG) && isPressed) { - boolean debug = physics.isDebugEnabled(); - physics.setDebugEnabled(!debug); + boolean debug = bulletAppState.isDebugEnabled(); + bulletAppState.setDebugEnabled(!debug); } }