src/misc/sphere-collider.js
function () {
    const data = this.data;
    let objectEls;

    // Push entities into list of els to intersect.
    if (data.objects) {
      objectEls = this.el.sceneEl.querySelectorAll(data.objects);
    } else {
      // If objects not defined, intersect with everything.
      objectEls = this.el.sceneEl.children;
    }
    // Convert from NodeList to Array
    this.els = Array.prototype.slice.call(objectEls);
  }
function () {
    const data = this.data;
    let objectEls;

    // Push entities into list of els to intersect.
    if (data.objects) {
      objectEls = this.el.sceneEl.querySelectorAll(data.objects);
    } else {
      // If objects not defined, intersect with everything.
      objectEls = this.el.sceneEl.children;
    }
    // Convert from NodeList to Array
    this.els = Array.prototype.slice.call(objectEls);
  }
function ( ) { const data = this . data ; let objectEls ; // Push entities into list of els to intersect. if ( data . objects ) { objectEls = this . el . sceneEl . querySelectorAll ( data . objects ) ; } else { // If objects not defined, intersect with everything. objectEls = this . el . sceneEl . children ; } // Convert from NodeList to Array this . els = Array . prototype . slice . call ( objectEls ) ; }
Update list of entities to test for collision.
Update list of entities to test for collision .