• Stars
    star
    106
  • Rank 325,871 (Top 7 %)
  • Language
    JavaScript
  • Created over 11 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A wrapper for the RecastDetour navigation library for node and the browser

What is this all about

In a game context, Recast.js is meant to be used with a file describing a scene geometry. Using the recastnavigation library, it will deduce a navigation mesh - a set of polygons on which your characters can move.

Once this navigation mesh is computed, it is possible to use built-in pathfinding operations like "find the shortest path between point A and point B", taking into account various variables like obstacles, slopes, and off-mesh connections.

If you decide to use it to animate your scene characters - aka "agents", it also provides a complete crowd system capable of managing all your agents movements using per-agent settings (speed, radius, ...)

What can you do with it

  • load any mesh in .obj format
  • compute and extract its navigation mesh with options
  • save this navigation mesh
  • load this blob without recompute it
  • find a random point guaranteed to be navigable
  • find the nearest path from one point to another
  • place obstacles with a radius
  • add agents on the navigation mesh
  • make them move with their own speed

Is it for WebGL, Three.js or Babylon.js ?

It is designed to work along a WebGL software but it's completely library agnostic. It only manages a mesh and its properties.

Included tests and demos use Three.js, though.

More Repositories

1

kisslists

A very simple shared lists server
Go
41
star
2

lootr

A simple rpg-like looting system
JavaScript
26
star
3

three-arena

A framework to create 3D hack and slash games
JavaScript
23
star
4

recastjs-editor

A navmesh editor leveraging recast.js
JavaScript
13
star
5

node-jamendo

Simple Jamendo API v3 client
HTML
12
star
6

youtubeclips

View music videos clips of the current track within Rhythmbox
Python
7
star
7

js-fp

CSS
6
star
8

electron-steam-openid

A library to handle Steam authentication with OpenID, for your [Electron](http://electron.atom.io) app.
JavaScript
5
star
9

three.js-nasa

NASA models viewer example
JavaScript
4
star
10

freenect-remote

Controlling the mouse with a Kinect device
Python
4
star
11

python-jamendo

A Python Jamendo API v3 client
Python
3
star
12

TracDroid

Trac browser for Android
Java
3
star
13

twittersay

A bot to generate fake tweets using Markov chains over previous tweeted content
JavaScript
3
star
14

plight

A quick and dirty Spotlight-like for the Web
JavaScript
2
star
15

ReacTvNode

Configure your fiducials sets with a simple NodeJS powered app.
JavaScript
2
star
16

poc-recast.js

An emscripten experiment
JavaScript
2
star
17

rhythmbox-freenect

Simple Rhythmbox plugin using libfreenect
Python
2
star
18

canola-jamendo

A Canola plugin for jamendo.com
Python
2
star
19

jamendo-from-twitter

Extracts Jamendo related data from tweets
JavaScript
2
star
20

icf-selector

Quickly find and copy ICF (International Classification of Functioning, Disability and Health) codes
JavaScript
2
star
21

oh-my-zou

A simple bejeweled-like javascript game
JavaScript
2
star
22

irlig

A simple SVG / Javascript game
PHP
1
star
23

js-fp-tool

JavaScript
1
star
24

android2pootle

Send Android string resources to pootle, and back
1
star
25

pyStan

A python-maemo application to view Nancy (France) bus timetables
1
star
26

scripts

Various scripts
Shell
1
star
27

trippy

A place to list, search and run your games from different vendors.
JavaScript
1
star
28

theinvertebrates

the Invertebrates website
PHP
1
star
29

playingrules

A Rhythmbox plugin to exclude tracks under conditions
Python
1
star
30

calidarr

List concerts of your favorites artists in Lidarr
Python
1
star
31

dejunk

A quick file sorter
Go
1
star
32

lootr-rs

A simple rpg-like looting system, in Rust
Rust
1
star
33

not-ngrx

A small state management library inspired from ngrx api
TypeScript
1
star
34

ng-stator

State management tools for ngrx
TypeScript
1
star
35

three-prez

Three.js presentation - http://vincent.github.io/three-prez
JavaScript
1
star
36

OS-Keychains

A repo containing keychains for popular operating systems
1
star