Răsfoiți Sursa

fix: point applys matrixworld in InstancedMesh when using selectionbox (#22962)

Co-authored-by: pank <[email protected]>
chiguaboy 3 ani în urmă
părinte
comite
8abf54b180
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  1. 1 0
      examples/jsm/interactive/SelectionBox.js

+ 1 - 0
examples/jsm/interactive/SelectionBox.js

@@ -182,6 +182,7 @@ class SelectionBox {
 
 					object.getMatrixAt( instanceId, _matrix );
 					_matrix.decompose( _center, _quaternion, _scale );
+					_center.applyMatrix4( object.matrixWorld );
 
 					if ( frustum.containsPoint( _center ) ) {