onemore-pathfinding

1.0.3 • Public • Published

Navigation Mesh Path Finder

Done

  • generate the geometry presentation of our game world ✓
  • merge obstacles ✓
  • padding(offset) obstacles ✓
  • triangulation ✓
  • find adjacent triangles ✓
  • cache A* cost ✓
  • perform A* to find path ✓
  • use funnel algorithm to straighten the path ✓

TODO

  • dynamic obstacle avoidence
  • flocking

Bugs

  • it turn out that the earcut algorithm doesn't always generate a perfect triangulation map where every pair of neighbor triangles are fully connected

Package Sidebar

Install

npm i onemore-pathfinding

Weekly Downloads

1

Version

1.0.3

License

ISC

Last publish

Collaborators

  • zzfoo