瀏覽代碼

comment + remove useless test

Julien Barrois 6 年之前
父節點
當前提交
bf8d6d763c
共有 3 個文件被更改,包括 2 次插入6 次删除
  1. 1 1
      src/Culling/babylon.boundingBox.ts
  2. 0 4
      src/Culling/babylon.boundingInfo.ts
  3. 1 1
      src/Culling/babylon.boundingSphere.ts

+ 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> {