recast-navigation 0.38.0 → 0.39.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/LICENSE +1 -1
- package/README.md +2 -4
- package/package.json +5 -5
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -496,12 +496,10 @@ const { success, navMesh, tileCache } = generateTileCache(
|
|
|
496
496
|
|
|
497
497
|
#### Debug Nav Mesh
|
|
498
498
|
|
|
499
|
-
You can use `
|
|
499
|
+
You can use `getNavMeshPositionsAndIndices` to get positions and indices that can be used to visualise the NavMesh.
|
|
500
500
|
|
|
501
501
|
```ts
|
|
502
|
-
const
|
|
503
|
-
|
|
504
|
-
const { positions, indices } = debugNavMesh;
|
|
502
|
+
const [positions, indices] = getNavMeshPositionsAndIndices(navMesh);
|
|
505
503
|
```
|
|
506
504
|
|
|
507
505
|
If you are using three.js or playcanvas, you can use built-in helpers from the integration libraries [`@recast-navigation/three`](https://github.com/isaac-mason/recast-navigation-js/tree/main/packages/recast-navigation-three/README.md) / [`@recast-navigation/playcanvas`](https://github.com/isaac-mason/recast-navigation-js/tree/main/packages/recast-navigation-playcanvas/README.md).
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"email": "isaac@isaacmason.com",
|
|
19
19
|
"url": "https://isaacmason.com/"
|
|
20
20
|
},
|
|
21
|
-
"version": "0.
|
|
21
|
+
"version": "0.39.0",
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"homepage": "https://github.com/isaac-mason/recast-navigation-js",
|
|
24
24
|
"bugs": {
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"lint": "eslint src"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@recast-navigation/core": "0.
|
|
63
|
-
"@recast-navigation/generators": "0.
|
|
62
|
+
"@recast-navigation/core": "0.39.0",
|
|
63
|
+
"@recast-navigation/generators": "0.39.0"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@babel/core": "^7.24.5",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"@storybook/react-vite": "^8.0.9",
|
|
85
85
|
"@types/react": "^18.3.1",
|
|
86
86
|
"@types/react-dom": "^18.2.8",
|
|
87
|
-
"@types/three": "^0.
|
|
87
|
+
"@types/three": "^0.172.0",
|
|
88
88
|
"@vitejs/plugin-react": "^4.2.1",
|
|
89
89
|
"eslint": "^9.6.0",
|
|
90
90
|
"leva": "^0.9.35",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"rollup-plugin-filesize": "^10.0.0",
|
|
96
96
|
"storybook": "^8.0.9",
|
|
97
97
|
"suspend-react": "^0.1.3",
|
|
98
|
-
"three": "^0.
|
|
98
|
+
"three": "^0.172.0",
|
|
99
99
|
"three-pathfinding": "^1.2.0",
|
|
100
100
|
"typescript": "^5.4.3",
|
|
101
101
|
"vite": "^5.4.8",
|