File tree Expand file tree Collapse file tree 3 files changed +143
-127
lines changed Expand file tree Collapse file tree 3 files changed +143
-127
lines changed Original file line number Diff line number Diff line change @@ -39516,14 +39516,22 @@
3951639516 updateMatrixWorld: ( function () {
3951739517
3951839518 var position = new Vector3();
39519+ var quaternion = new Quaternion();
39520+ var scale = new Vector3();
39521+
39522+ var orientation = new Vector3();
3951939523
3952039524 return function updateMatrixWorld( force ) {
3952139525
3952239526 Object3D.prototype.updateMatrixWorld.call( this, force );
3952339527
39524- position.setFromMatrixPosition( this.matrixWorld );
39528+ var panner = this.panner;
39529+ this.matrixWorld.decompose( position, quaternion, scale );
39530+
39531+ orientation.set( 0, 0, 1 ).applyQuaternion( quaternion );
3952539532
39526- this.panner.setPosition( position.x, position.y, position.z );
39533+ panner.setPosition( position.x, position.y, position.z );
39534+ panner.setOrientation( orientation.x, orientation.y, orientation.z );
3952739535
3952839536 };
3952939537
You can’t perform that action at this time.
0 commit comments