vendredi 28 mars 2014

SpriteKit - getting closest nodes


Vote count:

0




Is there a way of getting the closest nodes to a node?


I'm just about to write a method to iterate all nodes and calculate distances etc... but wondered if there is a better way?


I have 30 nodes and need the 2 nearest nodes to each of the 30 nodes (if that makes sense).



asked 19 secs ago






Aucun commentaire:

Enregistrer un commentaire