public void setEnabled(boolean enabled) {
        this.enabled = enabled;
        if (enabled) {
            this.canRotate = !dragToRotate; //On enable, set back to correct state
        } else {
            canRotate = false; // reset this flag in-case it was on before
        }
    }
Enable or disable the camera
@param enabled true to enable
jme3-core/src/main/java/com/jme3/input/ChaseCamera.java