Browse Source

Fix BoundingSphere.intersectsPoint

David Catuhe 7 năm trước cách đây
mục cha
commit
cccc4f1b41
2 tập tin đã thay đổi với 9146 bổ sung9146 xóa
  1. 9145 9145
      dist/preview release/babylon.d.ts
  2. 1 1
      src/Culling/babylon.boundingSphere.ts

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 9145 - 9145
dist/preview release/babylon.d.ts


+ 1 - 1
src/Culling/babylon.boundingSphere.ts

@@ -59,7 +59,7 @@
 
             var distance = Math.sqrt((x * x) + (y * y) + (z * z));
 
-            if (Math.abs(this.radiusWorld - distance) < Epsilon)
+            if (this.radiusWorld < distance)
                 return false;
 
             return true;