@recast-navigation/core 0.35.2 → 0.36.1
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 +2 -3
- package/dist/nav-mesh-query.d.ts +0 -1
- package/package.json +2 -2
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
|
/**
|
package/dist/nav-mesh-query.d.ts
CHANGED
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.
|
|
9
|
+
"version": "0.36.1",
|
|
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.
|
|
30
|
+
"@recast-navigation/wasm": "0.36.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@babel/core": "^7.24.5",
|