recast-navigation 0.0.7 → 0.1.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/README.md +4 -2
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -40,7 +40,7 @@ await init();
|
|
|
40
40
|
### Creating a NavMesh
|
|
41
41
|
|
|
42
42
|
```ts
|
|
43
|
-
import {
|
|
43
|
+
import { NavMeshGenerator } from 'recast-navigation';
|
|
44
44
|
|
|
45
45
|
const navMeshGenerator = new NavMeshGenerator();
|
|
46
46
|
|
|
@@ -67,6 +67,8 @@ const { navMesh } = navMeshGenerator.generate(
|
|
|
67
67
|
### Querying a NavMesh
|
|
68
68
|
|
|
69
69
|
```ts
|
|
70
|
+
import { NavMeshQuery } from 'recast-navigation';
|
|
71
|
+
|
|
70
72
|
const navMeshQuery = new NavMeshQuery({ navMesh });
|
|
71
73
|
|
|
72
74
|
/* get the closest point on the NavMesh to the given position */
|
|
@@ -195,7 +197,7 @@ You can use `getDebugNavMesh` to get a debug representation of the NavMesh.
|
|
|
195
197
|
```ts
|
|
196
198
|
const debugNavMesh = navMesh.getDebugNavMesh();
|
|
197
199
|
|
|
198
|
-
const { positions, indices } = debugNavMesh
|
|
200
|
+
const { positions, indices } = debugNavMesh;
|
|
199
201
|
```
|
|
200
202
|
|
|
201
203
|
If you are using `@recast-navigation/three`, you can use `NavMeshHelper` and `CrowdHelper` to visualize NavMeshes and Crowds.
|
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.1.1",
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"homepage": "https://github.com/isaac-mason/recast-navigation-js",
|
|
24
24
|
"bugs": {
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"build-storybook": "storybook build"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@recast-navigation/core": "0.
|
|
53
|
-
"@recast-navigation/three": "0.
|
|
52
|
+
"@recast-navigation/core": "0.1.1",
|
|
53
|
+
"@recast-navigation/three": "0.1.1"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"three": "^0.150.1"
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@babel/core": "^7.21.3",
|
|
60
60
|
"@mdx-js/react": "^1.6.22",
|
|
61
61
|
"@react-three/csg": "^2.2.0",
|
|
62
|
-
"@react-three/drei": "^9.
|
|
62
|
+
"@react-three/drei": "^9.72.1",
|
|
63
63
|
"@react-three/fiber": "^8.12.0",
|
|
64
64
|
"@rollup/plugin-commonjs": "^24.0.1",
|
|
65
65
|
"@rollup/plugin-multi-entry": "^6.0.0",
|
|
@@ -87,7 +87,8 @@
|
|
|
87
87
|
"rollup-plugin-filesize": "^10.0.0",
|
|
88
88
|
"storybook": "^7.0.2",
|
|
89
89
|
"suspend-react": "^0.0.9",
|
|
90
|
-
"three": "^0.150.1"
|
|
90
|
+
"three": "^0.150.1",
|
|
91
|
+
"three-pathfinding": "^1.2.0"
|
|
91
92
|
},
|
|
92
93
|
"packageManager": "yarn@3.2.2"
|
|
93
94
|
}
|