Skip to content

Commit 531b1b3

Browse files
committed
Updated builds.
1 parent 68ceebd commit 531b1b3

File tree

3 files changed

+143
-127
lines changed

3 files changed

+143
-127
lines changed

build/three.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)