@woosh/meep-engine 2.126.50 → 2.126.51

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
@@ -5,7 +5,7 @@
5
5
  "description": "Pure JavaScript game engine. Fully featured and production ready.",
6
6
  "type": "module",
7
7
  "author": "Alexander Goldring",
8
- "version": "2.126.50",
8
+ "version": "2.126.51",
9
9
  "main": "build/meep.module.js",
10
10
  "module": "build/meep.module.js",
11
11
  "exports": {
@@ -1 +1 @@
1
- {"version":3,"file":"compute_tight_near_far_clipping_planes.d.ts","sourceRoot":"","sources":["../../../../../../src/core/bvh2/bvh3/query/compute_tight_near_far_clipping_planes.js"],"names":[],"mappings":"AAWA;;;;;;;;GAQG;AACH,+DAPW,MAAM,EAAE,iBACR,MAAM,cACN,MAAM,OACN,GAAG,WACH,MAAM,EAAE,GAAC,SAAS,CAAC,MAAM,CAAC,GAAC,YAAY,GACrC,OAAO,CAgMnB"}
1
+ {"version":3,"file":"compute_tight_near_far_clipping_planes.d.ts","sourceRoot":"","sources":["../../../../../../src/core/bvh2/bvh3/query/compute_tight_near_far_clipping_planes.js"],"names":[],"mappings":"AAWA;;;;;;;;GAQG;AACH,+DAPW,MAAM,EAAE,iBACR,MAAM,cACN,MAAM,OACN,GAAG,WACH,MAAM,EAAE,GAAC,SAAS,CAAC,MAAM,CAAC,GAAC,YAAY,GACrC,OAAO,CAkMnB"}
@@ -133,9 +133,11 @@ export function compute_tight_near_far_clipping_planes(
133
133
  }
134
134
 
135
135
 
136
+
136
137
  const node_is_leaf = bvh.node_is_leaf(node);
137
138
 
138
139
  if (!node_is_leaf) {
140
+ // TODO skip node if it is fully within unconstrained planes already
139
141
 
140
142
  // inside
141
143
  // read in-order
@@ -189,7 +191,7 @@ export function compute_tight_near_far_clipping_planes(
189
191
  }
190
192
 
191
193
  const distance_above_plane = v3_distance_above_plane(
192
- x1, y1, z1,
194
+ x0, y0, z0,
193
195
  plane_normal_x, plane_normal_y, plane_normal_z, 0
194
196
  );
195
197