@recast-navigation/core 0.35.1 → 0.36.0

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/dist/index.mjs CHANGED
@@ -879,13 +879,12 @@ class NavMeshQuery {
879
879
  const status = this.raw.queryPolygons(vec3.toArray(center), vec3.toArray(halfExtents), filter.raw, polysRefsArray.raw, polyCountRef, maxPolys);
880
880
  const polyCount = polyCountRef.value;
881
881
  Raw.destroy(polyCountRef);
882
- const polyRefs = [...polysRefsArray.getHeapView()];
882
+ const polyRefs = [...polysRefsArray.getHeapView()].slice(0, polyCount);
883
883
  polysRefsArray.destroy();
884
884
  return {
885
885
  success: statusSucceed(status),
886
886
  status,
887
- polyRefs,
888
- polyCount
887
+ polyRefs
889
888
  };
890
889
  }
891
890
  /**
@@ -145,7 +145,6 @@ export declare class NavMeshQuery {
145
145
  success: boolean;
146
146
  status: number;
147
147
  polyRefs: number[];
148
- polyCount: number;
149
148
  };
150
149
  /**
151
150
  * Returns the closest point on the given polygon to the given position.
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "email": "isaac@isaacmason.com",
7
7
  "url": "https://isaacmason.com/"
8
8
  },
9
- "version": "0.35.1",
9
+ "version": "0.36.0",
10
10
  "license": "MIT",
11
11
  "homepage": "https://github.com/isaac-mason/recast-navigation-js",
12
12
  "bugs": {
@@ -27,7 +27,7 @@
27
27
  "lint": "eslint src"
28
28
  },
29
29
  "dependencies": {
30
- "@recast-navigation/wasm": "0.35.1"
30
+ "@recast-navigation/wasm": "0.36.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@babel/core": "^7.24.5",