setIsInteractionEnabled(val, duration) {
    if (this.isInteractionEnabled != val) {
      this.isInteractionEnabled = val;

      // update user triggered navigation
      const scene = this.getScene();
      if (scene != null) {
        if (this.isInteractionEnabled) {
          NavigationManager.getInstance().requestUserTriggeredNavigationUnlocked(this._requestId);
        } else {
          NavigationManager.getInstance().requestUserTriggeredNavigationLocked(this._requestId);
        }
      }
    }
  }
Sets whether interaction is enabled, locking or unlocking user triggered navigation as necessary.
@param {Boolean} val
@param {Number} [duration=0.0]