Skip to content

Commit 5b4520e

Browse files
committed
Updated builds.
1 parent 3f1253a commit 5b4520e

File tree

3 files changed

+51
-25
lines changed

3 files changed

+51
-25
lines changed

build/three.cjs

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6708,7 +6708,7 @@ const _x = /*@__PURE__*/ new Vector3();
67086708
const _y = /*@__PURE__*/ new Vector3();
67096709
const _z = /*@__PURE__*/ new Vector3();
67106710

6711-
const _matrix$1 = /*@__PURE__*/ new Matrix4();
6711+
const _matrix$2 = /*@__PURE__*/ new Matrix4();
67126712
const _quaternion$3 = /*@__PURE__*/ new Quaternion();
67136713

67146714
class Euler {
@@ -6943,9 +6943,9 @@ class Euler {
69436943

69446944
setFromQuaternion( q, order, update ) {
69456945

6946-
_matrix$1.makeRotationFromQuaternion( q );
6946+
_matrix$2.makeRotationFromQuaternion( q );
69476947

6948-
return this.setFromRotationMatrix( _matrix$1, order, update );
6948+
return this.setFromRotationMatrix( _matrix$2, order, update );
69496949

69506950
}
69516951

@@ -33191,7 +33191,7 @@ class MultiDrawRenderList {
3319133191
}
3319233192

3319333193
const ID_ATTR_NAME = 'batchId';
33194-
const _matrix = /*@__PURE__*/ new Matrix4();
33194+
const _matrix$1 = /*@__PURE__*/ new Matrix4();
3319533195
const _invMatrixWorld = /*@__PURE__*/ new Matrix4();
3319633196
const _identityMatrix = /*@__PURE__*/ new Matrix4();
3319733197
const _projScreenMatrix$2 = /*@__PURE__*/ new Matrix4();
@@ -33414,8 +33414,8 @@ class BatchedMesh extends Mesh {
3341433414

3341533415
if ( active[ i ] === false ) continue;
3341633416

33417-
this.getMatrixAt( i, _matrix );
33418-
this.getBoundingBoxAt( i, _box$1 ).applyMatrix4( _matrix );
33417+
this.getMatrixAt( i, _matrix$1 );
33418+
this.getBoundingBoxAt( i, _box$1 ).applyMatrix4( _matrix$1 );
3341933419
boundingBox.union( _box$1 );
3342033420

3342133421
}
@@ -33439,8 +33439,8 @@ class BatchedMesh extends Mesh {
3343933439

3344033440
if ( active[ i ] === false ) continue;
3344133441

33442-
this.getMatrixAt( i, _matrix );
33443-
this.getBoundingSphereAt( i, _sphere$2 ).applyMatrix4( _matrix );
33442+
this.getMatrixAt( i, _matrix$1 );
33443+
this.getBoundingSphereAt( i, _sphere$2 ).applyMatrix4( _matrix$1 );
3344433444
boundingSphere.union( _sphere$2 );
3344533445

3344633446
}
@@ -34047,8 +34047,8 @@ class BatchedMesh extends Mesh {
3404734047
if ( visibility[ i ] && active[ i ] ) {
3404834048

3404934049
// get the bounds in world space
34050-
this.getMatrixAt( i, _matrix );
34051-
this.getBoundingSphereAt( i, _sphere$2 ).applyMatrix4( _matrix );
34050+
this.getMatrixAt( i, _matrix$1 );
34051+
this.getBoundingSphereAt( i, _sphere$2 ).applyMatrix4( _matrix$1 );
3405234052

3405334053
// determine whether the batched geometry is within the frustum
3405434054
let culled = false;
@@ -34105,8 +34105,8 @@ class BatchedMesh extends Mesh {
3410534105
if ( perObjectFrustumCulled ) {
3410634106

3410734107
// get the bounds in world space
34108-
this.getMatrixAt( i, _matrix );
34109-
this.getBoundingSphereAt( i, _sphere$2 ).applyMatrix4( _matrix );
34108+
this.getMatrixAt( i, _matrix$1 );
34109+
this.getBoundingSphereAt( i, _sphere$2 ).applyMatrix4( _matrix$1 );
3411034110
culled = ! _frustum.intersectsSphere( _sphere$2 );
3411134111

3411234112
}
@@ -51253,6 +51253,8 @@ class GLBufferAttribute {
5125351253

5125451254
}
5125551255

51256+
const _matrix = /*@__PURE__*/ new Matrix4();
51257+
5125651258
class Raycaster {
5125751259

5125851260
constructor( origin, direction, near = 0, far = Infinity ) {
@@ -51305,6 +51307,17 @@ class Raycaster {
5130551307

5130651308
}
5130751309

51310+
setFromXRController( controller ) {
51311+
51312+
_matrix.identity().extractRotation( controller.matrixWorld );
51313+
51314+
this.ray.origin.setFromMatrixPosition( controller.matrixWorld );
51315+
this.ray.direction.set( 0, 0, - 1 ).applyMatrix4( _matrix );
51316+
51317+
return this;
51318+
51319+
}
51320+
5130851321
intersectObject( object, recursive = true, intersects = [] ) {
5130951322

5131051323
intersectObject( object, this, intersects, recursive );

build/three.module.js

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6706,7 +6706,7 @@ const _x = /*@__PURE__*/ new Vector3();
67066706
const _y = /*@__PURE__*/ new Vector3();
67076707
const _z = /*@__PURE__*/ new Vector3();
67086708

6709-
const _matrix$1 = /*@__PURE__*/ new Matrix4();
6709+
const _matrix$2 = /*@__PURE__*/ new Matrix4();
67106710
const _quaternion$3 = /*@__PURE__*/ new Quaternion();
67116711

67126712
class Euler {
@@ -6941,9 +6941,9 @@ class Euler {
69416941

69426942
setFromQuaternion( q, order, update ) {
69436943

6944-
_matrix$1.makeRotationFromQuaternion( q );
6944+
_matrix$2.makeRotationFromQuaternion( q );
69456945

6946-
return this.setFromRotationMatrix( _matrix$1, order, update );
6946+
return this.setFromRotationMatrix( _matrix$2, order, update );
69476947

69486948
}
69496949

@@ -33189,7 +33189,7 @@ class MultiDrawRenderList {
3318933189
}
3319033190

3319133191
const ID_ATTR_NAME = 'batchId';
33192-
const _matrix = /*@__PURE__*/ new Matrix4();
33192+
const _matrix$1 = /*@__PURE__*/ new Matrix4();
3319333193
const _invMatrixWorld = /*@__PURE__*/ new Matrix4();
3319433194
const _identityMatrix = /*@__PURE__*/ new Matrix4();
3319533195
const _projScreenMatrix$2 = /*@__PURE__*/ new Matrix4();
@@ -33412,8 +33412,8 @@ class BatchedMesh extends Mesh {
3341233412

3341333413
if ( active[ i ] === false ) continue;
3341433414

33415-
this.getMatrixAt( i, _matrix );
33416-
this.getBoundingBoxAt( i, _box$1 ).applyMatrix4( _matrix );
33415+
this.getMatrixAt( i, _matrix$1 );
33416+
this.getBoundingBoxAt( i, _box$1 ).applyMatrix4( _matrix$1 );
3341733417
boundingBox.union( _box$1 );
3341833418

3341933419
}
@@ -33437,8 +33437,8 @@ class BatchedMesh extends Mesh {
3343733437

3343833438
if ( active[ i ] === false ) continue;
3343933439

33440-
this.getMatrixAt( i, _matrix );
33441-
this.getBoundingSphereAt( i, _sphere$2 ).applyMatrix4( _matrix );
33440+
this.getMatrixAt( i, _matrix$1 );
33441+
this.getBoundingSphereAt( i, _sphere$2 ).applyMatrix4( _matrix$1 );
3344233442
boundingSphere.union( _sphere$2 );
3344333443

3344433444
}
@@ -34045,8 +34045,8 @@ class BatchedMesh extends Mesh {
3404534045
if ( visibility[ i ] && active[ i ] ) {
3404634046

3404734047
// get the bounds in world space
34048-
this.getMatrixAt( i, _matrix );
34049-
this.getBoundingSphereAt( i, _sphere$2 ).applyMatrix4( _matrix );
34048+
this.getMatrixAt( i, _matrix$1 );
34049+
this.getBoundingSphereAt( i, _sphere$2 ).applyMatrix4( _matrix$1 );
3405034050

3405134051
// determine whether the batched geometry is within the frustum
3405234052
let culled = false;
@@ -34103,8 +34103,8 @@ class BatchedMesh extends Mesh {
3410334103
if ( perObjectFrustumCulled ) {
3410434104

3410534105
// get the bounds in world space
34106-
this.getMatrixAt( i, _matrix );
34107-
this.getBoundingSphereAt( i, _sphere$2 ).applyMatrix4( _matrix );
34106+
this.getMatrixAt( i, _matrix$1 );
34107+
this.getBoundingSphereAt( i, _sphere$2 ).applyMatrix4( _matrix$1 );
3410834108
culled = ! _frustum.intersectsSphere( _sphere$2 );
3410934109

3411034110
}
@@ -51251,6 +51251,8 @@ class GLBufferAttribute {
5125151251

5125251252
}
5125351253

51254+
const _matrix = /*@__PURE__*/ new Matrix4();
51255+
5125451256
class Raycaster {
5125551257

5125651258
constructor( origin, direction, near = 0, far = Infinity ) {
@@ -51303,6 +51305,17 @@ class Raycaster {
5130351305

5130451306
}
5130551307

51308+
setFromXRController( controller ) {
51309+
51310+
_matrix.identity().extractRotation( controller.matrixWorld );
51311+
51312+
this.ray.origin.setFromMatrixPosition( controller.matrixWorld );
51313+
this.ray.direction.set( 0, 0, - 1 ).applyMatrix4( _matrix );
51314+
51315+
return this;
51316+
51317+
}
51318+
5130651319
intersectObject( object, recursive = true, intersects = [] ) {
5130751320

5130851321
intersectObject( object, this, intersects, recursive );

build/three.module.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)