@woosh/meep-engine 2.131.26 → 2.131.27

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.131.26",
8
+ "version": "2.131.27",
9
9
  "main": "build/meep.module.js",
10
10
  "module": "build/meep.module.js",
11
11
  "exports": {
@@ -1 +1 @@
1
- {"version":3,"file":"ebvh_print_to_console.d.ts","sourceRoot":"","sources":["../../../../../src/core/bvh2/bvh3/ebvh_print_to_console.js"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,uDAHW,MAAM,WACN,MAAM,QAuBhB"}
1
+ {"version":3,"file":"ebvh_print_to_console.d.ts","sourceRoot":"","sources":["../../../../../src/core/bvh2/bvh3/ebvh_print_to_console.js"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,uDAHW,MAAM,WACN,MAAM,QAyBhB"}
@@ -10,24 +10,26 @@ import { AABB3 } from "../../geom/3d/aabb/AABB3.js";
10
10
  * @param {number} [node] where to start, defaults to root
11
11
  * @param {string} [prefix] Initial prefix for the node
12
12
  */
13
- export function ebvh_print_to_console(bvh, node = bvh.root, prefix='') {
13
+ export function ebvh_print_to_console(bvh, node = bvh.root, prefix = '') {
14
14
 
15
15
  const is_leaf = bvh.node_is_leaf(node);
16
16
 
17
17
  const aabb = new AABB3();
18
18
 
19
- bvh.node_get_aabb(node,aabb);
19
+ bvh.node_get_aabb(node, aabb);
20
20
 
21
- let common = `Bounds: [ x0=${aabb.x0}, x1=${aabb.x1}, y0=${aabb.y0}, y1=${aabb.y1}, z0=${aabb.z0}, z1=${aabb.z1} ]`;
21
+ let s_bounds = `Bounds: [ x0=${aabb.x0}, x1=${aabb.x1}, y0=${aabb.y0}, y1=${aabb.y1}, z0=${aabb.z0}, z1=${aabb.z1} ]`;
22
22
 
23
23
 
24
24
  if (is_leaf) {
25
- console.log(prefix + `LeafNode/${node} ${common}, UserData: ${bvh.node_get_user_data(node)}`)
25
+ console.log(prefix + `LeafNode/${node} UserData: ${bvh.node_get_user_data(node)}, ${s_bounds}`)
26
26
  } else {
27
- console.groupCollapsed(prefix + `BinaryNode/${node} ${common}`);
27
+ console.groupCollapsed(prefix + `BinaryNode/${node}`);
28
+
29
+ console.log(s_bounds);
28
30
 
29
31
  ebvh_print_to_console(bvh, bvh.node_get_child1(node), 'child1 -> ');
30
- ebvh_print_to_console(bvh, bvh.node_get_child2(node),'child2 -> ');
32
+ ebvh_print_to_console(bvh, bvh.node_get_child2(node), 'child2 -> ');
31
33
 
32
34
  console.groupEnd();
33
35
  }