src/components/look-controls.js
function () {
    this.mouseDown = false;
    this.pitchObject = new THREE.Object3D();
    this.yawObject = new THREE.Object3D();
    this.yawObject.position.y = 10;
    this.yawObject.add(this.pitchObject);
  }
function () {
    this.mouseDown = false;
    this.pitchObject = new THREE.Object3D();
    this.yawObject = new THREE.Object3D();
    this.yawObject.position.y = 10;
    this.yawObject.add(this.pitchObject);
  }
function ( ) { this . mouseDown = false ; this . pitchObject = new THREE . Object3D ( ) ; this . yawObject = new THREE . Object3D ( ) ; this . yawObject . position . y = 10 ; this . yawObject . add ( this . pitchObject ) ; }
Set up states and Object3Ds needed to store rotation data.
Set up states and Object3Ds needed to store rotation data .