@woosh/meep-engine 2.34.29 → 2.34.30
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.
|
@@ -109,24 +109,6 @@ export class MicronGeometry {
|
|
|
109
109
|
|
|
110
110
|
// sphere test
|
|
111
111
|
|
|
112
|
-
// TODO check what's wrong with sphere tests and re-enable them
|
|
113
|
-
// if (!sphere_array_intersects_ray(patch.group_bounding_sphere,
|
|
114
|
-
// origin_x, origin_y, origin_z,
|
|
115
|
-
// direction_x, direction_y, direction_z
|
|
116
|
-
// )) {
|
|
117
|
-
// continue;
|
|
118
|
-
// }
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
// box test (more expensive, different volume)
|
|
122
|
-
if (!aabb3_array_intersects_ray(
|
|
123
|
-
patch.group_bounding_box,
|
|
124
|
-
origin_x, origin_y, origin_z,
|
|
125
|
-
direction_x, direction_y, direction_z
|
|
126
|
-
)) {
|
|
127
|
-
// no intersection
|
|
128
|
-
continue;
|
|
129
|
-
}
|
|
130
112
|
|
|
131
113
|
if (patch.lod === 0) {
|
|
132
114
|
// LOD 0 - source geometry
|
|
@@ -200,6 +182,26 @@ export class MicronGeometry {
|
|
|
200
182
|
}
|
|
201
183
|
|
|
202
184
|
} else {
|
|
185
|
+
|
|
186
|
+
// TODO check what's wrong with sphere tests and re-enable them
|
|
187
|
+
// if (!sphere_array_intersects_ray(patch.group_bounding_sphere,
|
|
188
|
+
// origin_x, origin_y, origin_z,
|
|
189
|
+
// direction_x, direction_y, direction_z
|
|
190
|
+
// )) {
|
|
191
|
+
// continue;
|
|
192
|
+
// }
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
// box test (more expensive, different volume)
|
|
196
|
+
if (!aabb3_array_intersects_ray(
|
|
197
|
+
patch.group_bounding_box,
|
|
198
|
+
origin_x, origin_y, origin_z,
|
|
199
|
+
direction_x, direction_y, direction_z
|
|
200
|
+
)) {
|
|
201
|
+
// no intersection
|
|
202
|
+
continue;
|
|
203
|
+
}
|
|
204
|
+
|
|
203
205
|
// refine more
|
|
204
206
|
const children = patch.children;
|
|
205
207
|
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"productName": "Meep",
|
|
6
6
|
"description": "production-ready JavaScript game engine based on Entity Component System Architecture",
|
|
7
7
|
"author": "Alexander Goldring",
|
|
8
|
-
"version": "2.34.
|
|
8
|
+
"version": "2.34.30",
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"gl-matrix": "3.4.3",
|
|
11
11
|
"fast-levenshtein": "2.0.6",
|