项目作者: ricksteam

项目描述 :
An port of RecastDetour written in JavaScript
高级语言: JavaScript
项目地址: git://github.com/ricksteam/recastdetourjs.git
创建时间: 2020-10-09T09:21:12Z
项目社区:https://github.com/ricksteam/recastdetourjs

开源协议:Other

下载


This project has been moved to https://github.com/crowdedjs/crowded. Please Use that repo. This repository has been archived.

Recast Detour ported to JavaScript

This is a JavaScript implementation of the Recast Navigation library, also called Recast Detour. This implementation is not a direct implementation, but a port of the Java port.

This project is unrelated to the recast-detour project found on npm. That project uses emscripten to create a wrapper around the original Recast Navigation code. This project is a full rewrite in JavaScript.

Getting Started

In the browser

The easiest way to use this project in a browser is through a CDN,

  1. or
  2. ```https://cdn.jsdelivr.net/npm/@ricksteam/recastdetourjs/recastdetourjs.min.js

for the minified version.

For node projects

To access this library in a node project, first install it as a dependency,

npm i @ricksteam/recastdetourjs

and then include it in your code,

const recastdetourjs = require('recastdetourjs')

Building the project

The project is built use babel and rollup. The package.json file has helper scripts for this. To build the project from scratch, run
npm run build

followed by
npm run rollup

This will create a new version of recastdetourjs.js in the main directory.

License information

This has the same license (zlib) as both the original recast navigation library and the Java port on which this is based.

In addition to the core library, this repository contains an examples folder. The examples folder has copies of the axios library and parts of the three.js library in the examples folder. They are both MIT licensed by their authors. The code in the examples folder that is unique to this project is also MIT licensed.