Explorar el Código

comment + remove useless test

Julien Barrois hace 6 años
padre
commit
bf8d6d763c

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

@@ -118,7 +118,7 @@ module BABYLON {
         }
 
         /**
-         * Gets the world matrix of the bounding box.
+         * Gets the world matrix of the bounding box
          * @returns a matrix
          */
         public getWorldMatrix(): Readonly<Matrix> {

+ 0 - 4
src/Culling/babylon.boundingInfo.ts

@@ -215,10 +215,6 @@ module BABYLON {
          * @returns if the bounding info intersects
          */
         public intersects(boundingInfo: Readonly<BoundingInfo>, precise: boolean): boolean {
-            if (!this.boundingSphere.centerWorld || !boundingInfo.boundingSphere.centerWorld) {
-                return false;
-            }
-
             if (!BoundingSphere.Intersects(this.boundingSphere, boundingInfo.boundingSphere)) {
                 return false;
             }

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

@@ -77,7 +77,7 @@ module BABYLON {
         }
 
         /**
-         * Gets the world matrix of the bounding box.
+         * Gets the world matrix of the bounding box
          * @returns a matrix
          */
         public getWorldMatrix(): Readonly<Matrix> {