returnthis}}(),translate:function(a,b){console.warn("THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead.");returnthis.translateOnAxis(b,a)},translateX:function(){vara=newTHREE.Vector3(1,0,0);returnfunction(b){returnthis.translateOnAxis(a,b)}}(),translateY:function(){vara=newTHREE.Vector3(0,1,0);returnfunction(b){returnthis.translateOnAxis(a,b)}}(),translateZ:function(){vara=newTHREE.Vector3(0,0,1);returnfunction(b){returnthis.translateOnAxis(a,
b)}}(),localToWorld:function(a){returna.applyMatrix4(this.matrixWorld)},worldToLocal:function(){vara=newTHREE.Matrix4;returnfunction(b){returnb.applyMatrix4(a.getInverse(this.matrixWorld))}}(),lookAt:function(){vara=newTHREE.Matrix4;returnfunction(b){a.lookAt(b,this.position,this.up);this.quaternion.setFromRotationMatrix(a)}}(),add:function(a){if(1<arguments.length){for(varb=0;b<arguments.length;b++)this.add(arguments[b]);returnthis}if(a===this)returnconsole.warn("THREE.Object3D.add: An object can't be added as a child of itself."),
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("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName().");returnthis.getObjectByName(a,b)},updateMatrix:function(){this.matrix.compose(this.position,this.quaternion,this.scale);this.matrixWorldNeedsUpdate=!0},updateMatrixWorld:function(a){!0===this.matrixAutoUpdate&&this.updateMatrix();if(!0===this.matrixWorldNeedsUpdate||
a,"can't be added as a child of itself."),this;if(ainstanceofTHREE.Object3D){void0!==a.parent&&a.parent.remove(a);a.parent=this;a.dispatchEvent({type:"added"});this.children.push(a);for(b=this;void0!==b.parent;)b=b.parent;void0!==b&&binstanceofTHREE.Scene&&b.__addObject(a)}elseconsole.error("THREE.Object3D.add:",a,"is not an instance of THREE.Object3D.");returnthis},remove:function(a){if(1<arguments.length)for(varb=0;b<arguments.length;b++)this.remove(arguments[b]);b=this.children.indexOf(a);
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("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName().");returnthis.getObjectByName(a,b)},updateMatrix:function(){this.matrix.compose(this.position,this.quaternion,this.scale);