Explorar o código

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

Co-authored-by: pank <pank07@vanke.com>
chiguaboy %!s(int64=4) %!d(string=hai) anos
pai
achega
8abf54b180
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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 ) ) {
 

粤ICP备19079148号