amaccann / phaser-navmesh-generation

12 stars 1 forks source link

Fine tune neighbour node calculation #4

Closed amaccann closed 7 years ago

amaccann commented 7 years ago

There's no need to search every other polygon to find the neighbour of any specific polygon X. Instead just search all its colleagues in any given Cluster instead to save on iteration cycles.

Will need to change this.polygons to match then structure of the hull clustering