@splinetool/navmesh-wasm 0.9.402 → 0.9.403
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/package.json +1 -2
- package/License.txt +0 -19
- package/readme.md +0 -39
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splinetool/navmesh-wasm",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.403",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./build/navmesh.js",
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
"build": "rimraf build/ && rimraf tmp/ && make-dir tmp/ && (cd tmp && emcmake cmake -G Ninja -DCMAKE_BUILD_TYPE=Release .. && cmake --build .)"
|
|
13
13
|
},
|
|
14
14
|
"types": "navmesh.d.ts",
|
|
15
|
-
"license": "Zlib",
|
|
16
15
|
"devDependencies": {
|
|
17
16
|
"@types/emscripten": "^1.39.6",
|
|
18
17
|
"make-dir-cli": "^3.0.0",
|
package/License.txt
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
Recast & Detour
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2009 Mikko Mononen memon@inside.org
|
|
4
|
-
|
|
5
|
-
This software is provided 'as-is', without any express or implied
|
|
6
|
-
warranty. In no event will the authors be held liable for any damages
|
|
7
|
-
arising from the use of this software.
|
|
8
|
-
|
|
9
|
-
Permission is granted to anyone to use this software for any purpose,
|
|
10
|
-
including commercial applications, and to alter it and redistribute it
|
|
11
|
-
freely, subject to the following restrictions:
|
|
12
|
-
|
|
13
|
-
1. The origin of this software must not be misrepresented; you must not
|
|
14
|
-
claim that you wrote the original software. If you use this software
|
|
15
|
-
in a product, an acknowledgment in the product documentation would be
|
|
16
|
-
appreciated but is not required.
|
|
17
|
-
2. Altered source versions must be plainly marked as such, and must not be
|
|
18
|
-
misrepresented as being the original software.
|
|
19
|
-
3. This notice may not be removed or altered from any source distribution.
|
package/readme.md
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
## What is recastjs ?
|
|
2
|
-
|
|
3
|
-
recastjs is a port of recastnavigation and a thin abstraction layer using emscripten. https://github.com/emscripten-core/emscripten
|
|
4
|
-
This port allows the use of recastnavigation in your browser using JavaScript or WebAssembly.
|
|
5
|
-
|
|
6
|
-
## What is recastnavigation ?
|
|
7
|
-
|
|
8
|
-
Recast is a navigation mesh construction toolset for games.
|
|
9
|
-
Recast is accompanied by Detour, a spatial reasoning toolkit.
|
|
10
|
-
You can use any navigation mesh with Detour, but of course the data generated by Recast fits perfectly.
|
|
11
|
-
The crowd management module provides you with features for agents handling and behavior customization
|
|
12
|
-
|
|
13
|
-
Some documentation is available here : http://masagroup.github.io/recastdetour/index.html
|
|
14
|
-
|
|
15
|
-
## How to build recastjs ?
|
|
16
|
-
|
|
17
|
-
First, update the Git Submodule using `git submodule update --init` in the recastjs folder.
|
|
18
|
-
You'll need emscripten with an active environment and mingw32-make for Windows (make for Linux).
|
|
19
|
-
|
|
20
|
-
```
|
|
21
|
-
mkdir build
|
|
22
|
-
emcmake cmake -B build -DCMAKE_BUILD_TYPE=Release
|
|
23
|
-
cmake --build build
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
This will produce .js and wasm version in the `build` directory.
|
|
27
|
-
|
|
28
|
-
Latest RecastNavigation commit : https://github.com/recastnavigation/recastnavigation/commit/c5cbd53024c8a9d8d097a4371215e3342d2fdc87
|
|
29
|
-
Built with emsdk 2.0.29
|
|
30
|
-
|
|
31
|
-
## How to extend recastjs ?
|
|
32
|
-
|
|
33
|
-
Recast/Detour can be difficult to use directly. A simplification layer is done thru src/recastjs.h/.cpp. All the functionnalities have to be exposed to JS by the IDL file.
|
|
34
|
-
Basically, that file lists all the structures, classes, methods visible to JS. The glue generation and build is handled ny make.py script. Any new functionnality should be written in recastjs.cpp file and exposed by the IDL
|
|
35
|
-
For more information on Web IDL : https://emscripten.org/docs/porting/connecting_cpp_and_javascript/WebIDL-Binder.html
|
|
36
|
-
|
|
37
|
-
## License
|
|
38
|
-
|
|
39
|
-
Recastjs is licensed under the same terms as Recastnavigation.
|