@woosh/meep-engine 2.119.36 → 2.119.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query_bvh_geometry_nearest.d.ts","sourceRoot":"","sources":["../../../../../../../src/engine/graphics/geometry/buffered/query/query_bvh_geometry_nearest.js"],"names":[],"mappings":"AAwBA;;;;;;;;;;;GAWG;AACH,uFARW,MAAM,EAAE,GAAC,YAAY,WACrB,MAAM,EAAE,GAAC,WAAW,GAAC,WAAW,KAChC,MAAM,KACN,MAAM,KACN,MAAM,gBACN,MAAM,GACL,OAAO,
|
|
1
|
+
{"version":3,"file":"query_bvh_geometry_nearest.d.ts","sourceRoot":"","sources":["../../../../../../../src/engine/graphics/geometry/buffered/query/query_bvh_geometry_nearest.js"],"names":[],"mappings":"AAwBA;;;;;;;;;;;GAWG;AACH,uFARW,MAAM,EAAE,GAAC,YAAY,WACrB,MAAM,EAAE,GAAC,WAAW,GAAC,WAAW,KAChC,MAAM,KACN,MAAM,KACN,MAAM,gBACN,MAAM,GACL,OAAO,CA0KlB"}
|
|
@@ -72,6 +72,7 @@ export function query_bvh_geometry_nearest(
|
|
|
72
72
|
|
|
73
73
|
let nearest_distance_sqr = max_distance * max_distance;
|
|
74
74
|
|
|
75
|
+
let got_a_hit = false;
|
|
75
76
|
|
|
76
77
|
do {
|
|
77
78
|
--pointer;
|
|
@@ -195,8 +196,10 @@ export function query_bvh_geometry_nearest(
|
|
|
195
196
|
);
|
|
196
197
|
|
|
197
198
|
result.index = triangle_index;
|
|
199
|
+
|
|
200
|
+
got_a_hit = true;
|
|
198
201
|
}
|
|
199
202
|
} while (pointer > stack_top);
|
|
200
203
|
|
|
201
|
-
return
|
|
204
|
+
return got_a_hit;
|
|
202
205
|
}
|