Code Monkey home page Code Monkey logo

recast-detour's Introduction

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, https://cdn.jsdelivr.net/npm/@ricksteam/recastdetourjs/recastdetourjs.js

or 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.

recast-detour's People

Contributors

bricksphd avatar waramsey avatar

Stargazers

suryo avatar Isaac Mason avatar Alan Smithee avatar Jeongrok Oh avatar will avatar Tim Nguyen avatar

Watchers

James Cloos avatar  avatar

Forkers

suryolho

recast-detour's Issues

Active?

Is this repo still maintained? While testing navmesh generation with complex scenes, I've found a bunch of bugs, which look like they are simply oversights when converting the Java code to JS. I can continue figuring them out and posting MRs for them here, if it is likely they'll be included.

Also, I would like a little more of the Recast/Detour APIs to be exported, would that be accepted?

Really nice work on the conversion, would love to use this!

Broken test

In nodeNPM, NodeApp needs to require a local file instead of a module in the npm registry.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.