THREE.Object3D.prototype={constructor:THREE.Object3D,addEventListener:THREE.EventDispatcher.prototype.addEventListener,hasEventListener:THREE.EventDispatcher.prototype.hasEventListener,removeEventListener:THREE.EventDispatcher.prototype.removeEventListener,dispatchEvent:THREE.EventDispatcher.prototype.dispatchEvent,geteulerOrder(){console.warn("DEPRECATED: Object3D's .eulerOrder has been moved to Object3D's .rotation.order.");returnthis.rotation.order},seteulerOrder(a){console.warn("DEPRECATED: Object3D's .eulerOrder has been moved to Object3D's .rotation.order.");
this.rotation.order=a},getuseQuaternion(){console.warn("DEPRECATED: Object3D's .useQuaternion has been removed. The library now uses quaternions by default.")},setuseQuaternion(a){console.warn("DEPRECATED: Object3D's .useQuaternion has been removed. The library now uses quaternions by default.")},applyMatrix:function(){vara=newTHREE.Matrix4;returnfunction(b){this.matrix.multiplyMatrices(b,this.matrix);this.position.getPositionFromMatrix(this.matrix);this.scale.getScaleFromMatrix(this.matrix);
a.extractRotation(this.matrix);this.quaternion.setFromRotationMatrix(a)}}(),rotateOnAxis:function(){vara=newTHREE.Quaternion;newTHREE.Quaternion;returnfunction(b,c){a.setFromAxisAngle(b,c);this.quaternion.multiply(a);returnthis}}(),translateOnAxis:function(){vara=newTHREE.Vector3;returnfunction(b,c){a.copy(b);a.applyQuaternion(this.quaternion);this.position.add(a.multiplyScalar(c));returnthis}}(),translate:function(a,b){console.warn("DEPRECATED: Object3D's .translate() has been removed. Use .translateOnAxis( axis, distance ) instead. Note args have been changed.");
lookAt:function(){vara=newTHREE.Matrix4;returnfunction(b){a.lookAt(b,this.position,this.up);this.quaternion.setFromRotationMatrix(a)}}(),add:function(a){if(a===this)console.warn("THREE.Object3D.add: An object can't be added as a child of itself.");elseif(ainstanceofTHREE.Object3D){void0!==a.parent&&a.parent.remove(a);a.parent=this;this.children.push(a);for(varb=this;void0!==b.parent;)b=b.parent;void0!==b&&binstanceofTHREE.Scene&&b.__addObject(a)}},remove:function(a){varb=this.children.indexOf(a);
if(e.name===a||!0===b&&(e=e.getObjectByName(a,b),void0!==e))returne}},getChildByName:function(a,b){console.warn("DEPRECATED: Object3D's .getChildByName() has been renamed to .getObjectByName().");returnthis.getObjectByName(a,b)},getDescendants:function(a){void0===a&&(a=[]);Array.prototype.push.apply(a,this.children);for(varb=0,c=this.children.length;b<c;b++)this.children[b].getDescendants(a);returna},updateMatrix:function(){this.matrix.compose(this.position,this.quaternion,this.scale);this.matrixWorldNeedsUpdate=
b)}}(),translateOnAxis:function(){vara=newTHREE.Vector3;returnfunction(b,c){a.copy(b);a.applyQuaternion(this.quaternion);this.position.add(a.multiplyScalar(c));returnthis}}(),translate:function(a,b){console.warn("DEPRECATED: Object3D's .translate() has been removed. Use .translateOnAxis( axis, distance ) instead. Note args have been changed.");returnthis.translateOnAxis(b,a)},translateX:function(){vara=newTHREE.Vector3(1,0,0);returnfunction(b){returnthis.translateOnAxis(a,b)}}(),translateY:function(){vara=
add:function(a){if(a===this)console.warn("THREE.Object3D.add: An object can't be added as a child of itself.");elseif(ainstanceofTHREE.Object3D){void0!==a.parent&&a.parent.remove(a);a.parent=this;this.children.push(a);for(varb=this;void0!==b.parent;)b=b.parent;void0!==b&&binstanceofTHREE.Scene&&b.__addObject(a)}},remove:function(a){varb=this.children.indexOf(a);if(-1!==b){a.parent=void0;this.children.splice(b,1);for(b=this;void0!==b.parent;)b=b.parent;void0!==b&&binstanceofTHREE.Scene&&
b.__removeObject(a)}},traverse:function(a){a(this);for(varb=0,c=this.children.length;b<c;b++)this.children[b].traverse(a)},getObjectById:function(a,b){for(varc=0,d=this.children.length;c<d;c++){vare=this.children[c];if(e.id===a||!0===b&&(e=e.getObjectById(a,b),void0!==e))returne}},getObjectByName:function(a,b){for(varc=0,d=this.children.length;c<d;c++){vare=this.children[c];if(e.name===a||!0===b&&(e=e.getObjectByName(a,b),void0!==e))returne}},getChildByName:function(a,b){console.warn("DEPRECATED: Object3D's .getChildByName() has been renamed to .getObjectByName().");