@woosh/meep-engine 2.119.41 → 2.119.42
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,CA+KlB"}
|
|
@@ -140,10 +140,11 @@ export function query_bvh_geometry_nearest(
|
|
|
140
140
|
// leaf node
|
|
141
141
|
// read triangle data
|
|
142
142
|
const triangle_index = uint32[address + COLUMN_USER_DATA];
|
|
143
|
+
const index_offset = triangle_index*3;
|
|
143
144
|
|
|
144
|
-
const a = indices[
|
|
145
|
-
const b = indices[
|
|
146
|
-
const c = indices[
|
|
145
|
+
const a = indices[index_offset];
|
|
146
|
+
const b = indices[index_offset + 1];
|
|
147
|
+
const c = indices[index_offset + 2];
|
|
147
148
|
|
|
148
149
|
|
|
149
150
|
const a_address = a * 3;
|