src/controls/movement-controls.js
function () {
    const el = this.el;

    this.velocityCtrl = null;

    this.velocity = new THREE.Vector3();
    this.heading = new THREE.Quaternion();

    // Navigation
    this.navGroup = null;
    this.navNode = null;

    if (el.sceneEl.hasLoaded) {
      this.injectControls();
    } else {
      el.sceneEl.addEventListener('loaded', this.injectControls.bind(this));
    }
  }
function () {
    const el = this.el;

    this.velocityCtrl = null;

    this.velocity = new THREE.Vector3();
    this.heading = new THREE.Quaternion();

    // Navigation
    this.navGroup = null;
    this.navNode = null;

    if (el.sceneEl.hasLoaded) {
      this.injectControls();
    } else {
      el.sceneEl.addEventListener('loaded', this.injectControls.bind(this));
    }
  }
function ( ) { const el = this . el ; this . velocityCtrl = null ; this . velocity = new THREE . Vector3 ( ) ; this . heading = new THREE . Quaternion ( ) ; // Navigation this . navGroup = null ; this . navNode = null ; if ( el . sceneEl . hasLoaded ) { this . injectControls ( ) ; } else { el . sceneEl . addEventListener ( 'loaded' , this . injectControls . bind ( this ) ) ; } }
*****************************************************************
Lifecycle
***************************************************************** Lifecycle