Browse Source

Fix BoundingSphere.intersectsPoint

David Catuhe 7 years ago
parent
commit
cccc4f1b41
2 changed files with 9146 additions and 9146 deletions
  1. 9145 9145
      dist/preview release/babylon.d.ts
  2. 1 1
      src/Culling/babylon.boundingSphere.ts

File diff suppressed because it is too large
+ 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));
             var distance = Math.sqrt((x * x) + (y * y) + (z * z));
 
 
-            if (Math.abs(this.radiusWorld - distance) < Epsilon)
+            if (this.radiusWorld < distance)
                 return false;
                 return false;
 
 
             return true;
             return true;