Skip to content

Commit f2b78a0

Browse files
committed
chore(react-three-yuka)!: remove recast-navigation
1 parent 76a52d9 commit f2b78a0

File tree

8 files changed

+1
-157
lines changed

8 files changed

+1
-157
lines changed

app/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
"@react-three/uikit-default": "catalog:three",
2626
"@react-three/uikit-lucide": "catalog:three",
2727
"@react-three/xr": "catalog:three",
28-
"@recast-navigation/core": "catalog:yuka",
29-
"@recast-navigation/three": "catalog:yuka",
3028
"@ricky0123/vad-react": "^0.0.30",
3129
"@xsai/generate-speech": "catalog:xsai",
3230
"@xsai/generate-text": "catalog:xsai",

packages/react-three-yuka/README.md

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -72,37 +72,6 @@ export const Cube = () => {
7272
}
7373
```
7474

75-
###### InitRecastNavigation (./recast-navigation)
76-
77-
Call the functions of recast-navigation under this component.
78-
79-
```tsx
80-
import { InitRecastNavigation } from '@n3p6/react-three-yuka/recast-navigation'
81-
import { Outlet } from 'react-router'
82-
83-
export const Layout = () => (
84-
<InitRecastNavigation>
85-
<Outlet />
86-
</InitRecastNavigation>
87-
)
88-
```
89-
90-
###### toYukaNavMesh (./recast-navigation)
91-
92-
```ts
93-
import type { Mesh } from 'three'
94-
import type { NavMesh } from 'yuka'
95-
96-
import { toYukaNavMesh } from '@n3p6/react-three-yuka/recast-navigation'
97-
import { threeToSoloNavMesh } from '@recast-navigation/three'
98-
99-
const meshes: Mesh[] = [/* ... */]
100-
101-
const { navMesh } = threeToSoloNavMesh(meshes, { /* config */})
102-
103-
const yukaNavMesh: NavMesh = toYukaNavMesh(navMesh!)
104-
```
105-
10675
# License
10776

10877
[MIT](../../LICENSE.md)

packages/react-three-yuka/package.json

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,13 @@
1212
},
1313
"bugs": "https://github.com/moeru-ai/chat/issues",
1414
"sideEffects": false,
15-
"exports": {
16-
".": "./src/index.ts",
17-
"./recast-navigation": "./src/recast-navigation/index.ts"
18-
},
15+
"exports": "./src/index.ts",
1916
"publishConfig": {
2017
"exports": {
2118
".": {
2219
"types": "./dist/index.d.ts",
2320
"default": "./dist/index.js"
2421
},
25-
"./recast-navigation": {
26-
"types": "./dist/recast-navigation/index.d.ts",
27-
"default": "./dist/recast-navigation/index.js"
28-
},
2922
"./package.json": "./package.json"
3023
},
3124
"main": "./dist/index.js",
@@ -39,19 +32,13 @@
3932
},
4033
"peerDependencies": {
4134
"@react-three/fiber": "catalog:three",
42-
"@recast-navigation/core": "catalog:yuka",
4335
"@types/react": "catalog:react",
4436
"@types/three": "catalog:three",
4537
"@types/yuka": "catalog:yuka",
4638
"react": "catalog:react",
4739
"three": "catalog:three",
4840
"yuka": "catalog:yuka"
4941
},
50-
"peerDependenciesMeta": {
51-
"@recast-navigation/core": {
52-
"optional": true
53-
}
54-
},
5542
"dependencies": {
5643
"foxact": "catalog:"
5744
}

packages/react-three-yuka/src/recast-navigation/components/init-recast-navigation.tsx

Lines changed: 0 additions & 20 deletions
This file was deleted.

packages/react-three-yuka/src/recast-navigation/index.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

packages/react-three-yuka/src/recast-navigation/utils/to-yuka-nav-mesh.ts

Lines changed: 0 additions & 38 deletions
This file was deleted.

pnpm-lock.yaml

Lines changed: 0 additions & 48 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,5 @@ catalogs:
4444
'@xsai/shared-chat': *xsai
4545

4646
yuka:
47-
'@recast-navigation/core': &recast-navigation ^0.39.0
48-
'@recast-navigation/three': *recast-navigation
4947
'@types/yuka': ^0.7.4
5048
yuka: ^0.7.8

0 commit comments

Comments
 (0)