Forráskód Böngészése

Fix BoundingSphere.intersectsPoint

David Catuhe 7 éve
szülő
commit
cccc4f1b41
2 módosított fájl, 9146 hozzáadás és 9146 törlés
  1. 9145 9145
      dist/preview release/babylon.d.ts
  2. 1 1
      src/Culling/babylon.boundingSphere.ts

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 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;