recast-navigation 0.0.3 → 0.0.5
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 +7 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -15,10 +15,14 @@ A WebAssembly port of [Recast Navigation](https://github.com/recastnavigation/re
|
|
|
15
15
|
|
|
16
16
|
## Installation
|
|
17
17
|
|
|
18
|
+
You can install the library using npm:
|
|
19
|
+
|
|
18
20
|
```sh
|
|
19
21
|
npm install recast-navigation
|
|
20
22
|
```
|
|
21
23
|
|
|
24
|
+
This package ships as ECMAScript modules, and is compatible with Node.js and browser environments.
|
|
25
|
+
|
|
22
26
|
## Usage
|
|
23
27
|
|
|
24
28
|
### Initialization
|
|
@@ -41,11 +45,12 @@ import { NavMesh } from 'recast-navigation';
|
|
|
41
45
|
const navMesh = new NavMesh();
|
|
42
46
|
|
|
43
47
|
const positions = [
|
|
44
|
-
/*
|
|
48
|
+
/* flat array of positions */
|
|
49
|
+
/* e.g. x1, y1, z1, x2, y2, z2, ... */
|
|
45
50
|
];
|
|
46
51
|
|
|
47
52
|
const indices = [
|
|
48
|
-
/*
|
|
53
|
+
/* flat array of indices */
|
|
49
54
|
];
|
|
50
55
|
|
|
51
56
|
const navMeshConfig = {
|
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.0.
|
|
21
|
+
"version": "0.0.5",
|
|
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.0.
|
|
53
|
-
"@recast-navigation/three": "0.0.
|
|
52
|
+
"@recast-navigation/core": "0.0.5",
|
|
53
|
+
"@recast-navigation/three": "0.0.5"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"three": "^0.150.1"
|