Преглед на файлове

Add points threshold to bounding sphere radius

Resolves issues described in #7710, #9309, and #10763. (hopefully)
WestLangley преди 8 години
родител
ревизия
5cd8b0300c
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      src/objects/Points.js

+ 1 - 0
src/objects/Points.js

@@ -46,6 +46,7 @@ Points.prototype = Object.assign( Object.create( Object3D.prototype ), {
 
 			sphere.copy( geometry.boundingSphere );
 			sphere.applyMatrix4( matrixWorld );
+			sphere.radius += threshold;
 
 			if ( raycaster.ray.intersectsSphere( sphere ) === false ) return;