/** * Fly Controls * @param camera * @param THREE * @param canvas * @constructor */ R3.D3.FlyControls = function( camera, THREE, canvas ) { this.flySpeed = 100; this.canvas = canvas; this.THREE = THREE; this.yaw = 0; this.pitch = 0; this.canRotate = false; this.moveForward = false; this.moveBackward = false; this.moveLeft = false; this.moveRight = false; this.moveUp = false; this.moveDown = false; };