SkillAgentSearch skills...

RecastCLI.js

CLI tool & Node.js addon to generate navigation mesh

Install / Use

/learn @but0n/RecastCLI.js
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

RecastCLI

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 under ZLib license

Nodejs addon

Building (nodejs branch)

$ npm install && npm run build

Usage

const recast = require('./build/Release/RecastCLI');

recast.loadFile('myfile.obj');
recast.loadContent('v -0.5 0 0.5@v -0.5 0 -0.5@...f 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 tools

At master branch

Building

Usage

$ ./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

Order

  • cellSize
  • cellHeight
  • agentHeight
  • agentRadius
  • agentMaxClimp
  • agentMaxSlope
  • regionMinSize
  • regionMergeSize
  • edgeMaxLen
  • edgeMaxError
  • vertsPerPoly
  • detailSampleDist
  • detailSampleMaxErro

Powered by cafe team

View on GitHub
GitHub Stars52
CategoryDevelopment
Updated4mo ago
Forks18

Languages

C++

Security Score

97/100

Audited on Nov 3, 2025

No findings