isaac-mason / recast-navigation-js

JavaScript navigation mesh construction, path-finding, and spatial reasoning toolkit. WebAssembly port of Recast Navigation.
https://recast-navigation-js.isaacmason.com
MIT License
273 stars 25 forks source link

Add dynamically updating tiled navmesh example #9

Open isaac-mason opened 1 year ago

isaac-mason commented 1 year ago

Support this kind of functionality: https://www.youtube.com/watch?v=WzFJMvE0L60

isaac-mason commented 7 months ago

WIP: https://sketches.isaacmason.com/sketch/recast-navigation/dynamic-tiled-navmesh

This example generates navmesh tiles in a pool of web workers, updating navmesh tiles that have active physics bodies in them (using rapier.js).

Should look to create a minimal demo here.

There's a DynamicTiledNavMesh class in that example that could be improved and included in a non-core package, e.g. recast-navigation/addons: https://github.com/isaac-mason/sketches/blob/main/src/sketches/recast-navigation/dynamic-tiled-navmesh/navigation/dynamic-tiled-navmesh.ts

GGAlanSmithee commented 7 months ago

this is really cool @isaac-mason :100: