|
@@ -24,7 +24,7 @@
|
|
_pointer.x = event.clientX / element.clientWidth * 2 - 1;
|
|
_pointer.x = event.clientX / element.clientWidth * 2 - 1;
|
|
_pointer.y = - ( event.clientY / element.clientHeight ) * 2 + 1;
|
|
_pointer.y = - ( event.clientY / element.clientHeight ) * 2 + 1;
|
|
raycaster.setFromCamera( _pointer, camera );
|
|
raycaster.setFromCamera( _pointer, camera );
|
|
- const intersects = raycaster.intersectObjects( scope.children );
|
|
|
|
|
|
+ const intersects = raycaster.intersectObjects( scope.children, false );
|
|
|
|
|
|
if ( intersects.length > 0 ) {
|
|
if ( intersects.length > 0 ) {
|
|
|
|
|
|
@@ -63,7 +63,7 @@
|
|
tempMatrix.identity().extractRotation( controller.matrixWorld );
|
|
tempMatrix.identity().extractRotation( controller.matrixWorld );
|
|
raycaster.ray.origin.setFromMatrixPosition( controller.matrixWorld );
|
|
raycaster.ray.origin.setFromMatrixPosition( controller.matrixWorld );
|
|
raycaster.ray.direction.set( 0, 0, - 1 ).applyMatrix4( tempMatrix );
|
|
raycaster.ray.direction.set( 0, 0, - 1 ).applyMatrix4( tempMatrix );
|
|
- const intersections = raycaster.intersectObjects( scope.children );
|
|
|
|
|
|
+ const intersections = raycaster.intersectObjects( scope.children, false );
|
|
|
|
|
|
if ( intersections.length > 0 ) {
|
|
if ( intersections.length > 0 ) {
|
|
|
|
|