소스 검색

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;