Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/but0n/recastcli.js
CLI tool & Node.js addon to generate navigation mesh
https://github.com/but0n/recastcli.js
command-line-tool gametools node-module recast-navigation
Last synced: 2 days ago
JSON representation
CLI tool & Node.js addon to generate navigation mesh
- Host: GitHub
- URL: https://github.com/but0n/recastcli.js
- Owner: but0n
- License: mit
- Created: 2018-02-26T12:34:05.000Z (over 6 years ago)
- Default Branch: nodejs
- Last Pushed: 2022-06-23T14:48:24.000Z (over 2 years ago)
- Last Synced: 2024-11-07T12:45:17.355Z (6 days ago)
- Topics: command-line-tool, gametools, node-module, recast-navigation
- Language: C++
- Homepage:
- Size: 505 KB
- Stars: 49
- Watchers: 6
- Forks: 16
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RecastCLI
![](https://user-images.githubusercontent.com/7625588/36931426-d560d6aa-1eef-11e8-96a2-14812f7994a3.png)A command line tools to build navigation mesh for game, which means you can automatically generate navigation mesh on server or localhost in pipeline.
> Based on [recastnavigation](https://github.com/recastnavigation/recastnavigation) under ZLib license
# Nodejs addon
## Building (`nodejs` branch)
```shell
$ npm install && npm run build
```## Usage
```js
const recast = require('./build/Release/RecastCLI');recast.loadFile('myfile.obj');
recast.loadContent('v -0.5 0 0.5@v -0.5 0 [email protected] 27 26 25@f 28 26 27@');
recast.loadArray(new Float32Array(position), new Int32Array(index))recast.build(cellSize, cellHeight, agentHeight, agentRadius, agentMaxClimp, agentMaxSlope); // return string
recast.save("navmesh.obj");
```----
# Command line toolsAt master branch
## Building
![](https://user-images.githubusercontent.com/7625588/36931376-1824eb9e-1eef-11e8-84f6-02b93cfce723.png)
## Usage
```shell
$ ./RecastCLI nav_test.obj 0 0 0 0 0 0 0 0 0 0 0 0 0 > navmesh.obj
```
- Running at debug mode
> Toggle with macro `#define DEBUG`
![](https://user-images.githubusercontent.com/7625588/37192900-ac44b93c-23a2-11e8-8487-92699f0ecb3c.png)### Order
- cellSize
- cellHeight
- agentHeight
- agentRadius
- agentMaxClimp
- agentMaxSlope
- regionMinSize
- regionMergeSize
- edgeMaxLen
- edgeMaxError
- vertsPerPoly
- detailSampleDist
- detailSampleMaxErro***Powered by cafe team***