Quellcode durchsuchen

doc + missing changes file

Julien Barrois vor 6 Jahren
Ursprung
Commit
0f5cf19293
2 geänderte Dateien mit 5 neuen und 4 gelöschten Zeilen
  1. 3 0
      src/Culling/babylon.ray.ts
  2. 2 4
      src/Mesh/babylon.subMesh.ts

+ 3 - 0
src/Culling/babylon.ray.ts

@@ -33,6 +33,7 @@ module BABYLON {
          * Checks if the ray intersects a box
          * Checks if the ray intersects a box
          * @param minimum bound of the box
          * @param minimum bound of the box
          * @param maximum bound of the box
          * @param maximum bound of the box
+         * @param intersectionTreshold extra extend to be added to the box in all direction
          * @returns if the box was hit
          * @returns if the box was hit
          */
          */
         public intersectsBoxMinMax(minimum: Vector3, maximum: Vector3, intersectionTreshold: number = 0): boolean {
         public intersectsBoxMinMax(minimum: Vector3, maximum: Vector3, intersectionTreshold: number = 0): boolean {
@@ -132,6 +133,7 @@ module BABYLON {
         /**
         /**
          * Checks if the ray intersects a box
          * Checks if the ray intersects a box
          * @param box the bounding box to check
          * @param box the bounding box to check
+         * @param intersectionTreshold extra extend to be added to the BoundingBox in all direction
          * @returns if the box was hit
          * @returns if the box was hit
          */
          */
         public intersectsBox(box: BoundingBox, intersectionTreshold: number = 0): boolean {
         public intersectsBox(box: BoundingBox, intersectionTreshold: number = 0): boolean {
@@ -141,6 +143,7 @@ module BABYLON {
         /**
         /**
          * If the ray hits a sphere
          * If the ray hits a sphere
          * @param sphere the bounding sphere to check
          * @param sphere the bounding sphere to check
+         * @param intersectionTreshold extra extend to be added to the BoundingSphere in all direction
          * @returns true if it hits the sphere
          * @returns true if it hits the sphere
          */
          */
         public intersectsSphere(sphere: BoundingSphere, intersectionTreshold: number = 0): boolean {
         public intersectsSphere(sphere: BoundingSphere, intersectionTreshold: number = 0): boolean {

+ 2 - 4
src/Mesh/babylon.subMesh.ts

@@ -215,13 +215,11 @@ module BABYLON {
                 extend = Tools.ExtractMinAndMaxIndexed(data, indices, this.indexStart, this.indexCount, this._renderingMesh.geometry.boundingBias);
                 extend = Tools.ExtractMinAndMaxIndexed(data, indices, this.indexStart, this.indexCount, this._renderingMesh.geometry.boundingBias);
             }
             }
 
 
-            const extraWorldExtent = this._renderingMesh.geometry ? this._renderingMesh.geometry._boundingWorldExtraExtent : undefined;
-
             if (this._boundingInfo) {
             if (this._boundingInfo) {
-                this._boundingInfo.reConstruct(extend.minimum, extend.maximum, undefined, extraWorldExtent);
+                this._boundingInfo.reConstruct(extend.minimum, extend.maximum);
             }
             }
             else {
             else {
-                this._boundingInfo = new BoundingInfo(extend.minimum, extend.maximum, undefined, extraWorldExtent);
+                this._boundingInfo = new BoundingInfo(extend.minimum, extend.maximum);
             }
             }
             return this;
             return this;
         }
         }