@recast-navigation/playcanvas 0.42.0 → 0.42.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 +5 -5
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -40,7 +40,7 @@ await init();
|
|
|
40
40
|
|
|
41
41
|
### Generating a NavMesh
|
|
42
42
|
|
|
43
|
-
This package provides convenience functions for generating nav meshes from
|
|
43
|
+
This package provides convenience functions for generating nav meshes from PlayCanvas MeshInstance objects.
|
|
44
44
|
|
|
45
45
|
```ts
|
|
46
46
|
import { init } from 'recast-navigation';
|
|
@@ -77,7 +77,7 @@ This library provides helpers that are used in conjunction with the core library
|
|
|
77
77
|
|
|
78
78
|
### Helpers
|
|
79
79
|
|
|
80
|
-
This package provides helpers for visualizing various recast-navigation objects in
|
|
80
|
+
This package provides helpers for visualizing various recast-navigation objects in PlayCanvas.
|
|
81
81
|
|
|
82
82
|
#### `NavMeshHelper`
|
|
83
83
|
|
|
@@ -86,7 +86,7 @@ import { NavMeshHelper } from '@recast-navigation/playcanvas';
|
|
|
86
86
|
|
|
87
87
|
const navMeshHelper = new NavMeshHelper(navMesh, graphicsDevice);
|
|
88
88
|
|
|
89
|
-
this.entity.
|
|
89
|
+
this.entity.addChild(navMeshHelper);
|
|
90
90
|
|
|
91
91
|
// update the helper when the navmesh changes
|
|
92
92
|
navMeshHelper.update();
|
|
@@ -101,7 +101,7 @@ import { TileCacheHelper } from '@recast-navigation/playcanvas';
|
|
|
101
101
|
|
|
102
102
|
const tileCacheHelper = new TileCacheHelper(tileCache);
|
|
103
103
|
|
|
104
|
-
this.entity.
|
|
104
|
+
this.entity.addChild(tileCacheHelper);
|
|
105
105
|
|
|
106
106
|
// update the helper after adding or removing obstacles
|
|
107
107
|
tileCacheHelper.update();
|
|
@@ -116,7 +116,7 @@ import { CrowdHelper } from '@recast-navigation/playcanvas';
|
|
|
116
116
|
|
|
117
117
|
const crowdHelper = new CrowdHelper(crowd, graphicsDevice);
|
|
118
118
|
|
|
119
|
-
this.entity.
|
|
119
|
+
this.entity.addChild(crowdHelper);
|
|
120
120
|
|
|
121
121
|
// update the helper after updating the crowd
|
|
122
122
|
crowdHelper.update();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@recast-navigation/playcanvas",
|
|
3
3
|
"description": "Utilities for using recast-navigation with PlayCanvas",
|
|
4
|
-
"version": "0.42.
|
|
4
|
+
"version": "0.42.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/isaac-mason/recast-navigation-js",
|
|
7
7
|
"bugs": {
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"test": "tsc"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@recast-navigation/core": "0.42.
|
|
25
|
-
"@recast-navigation/generators": "0.42.
|
|
24
|
+
"@recast-navigation/core": "0.42.1",
|
|
25
|
+
"@recast-navigation/generators": "0.42.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/core": "^7.28.0",
|