Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 607 Bytes

File metadata and controls

14 lines (12 loc) · 607 Bytes

SpherePathfinding_v2

My second attempt at Pathfinding on a sphere. This time it actually works and is fast (enough). It uses a Icosphere that was subdivided (7 times) as a Mesh. Every triangle of the mesh represents a node for A* Pathfinding. The grid gets created automatically from the Mesh.

img Blue tiles: Start and end node
Green tiles: Path
Red tiles: unwalkable nodes / obstacles

How to use:
Left click: find path from Player object to Mouse position
Middle click: toggle clicked node unwalkable status
Hold right click: rotate sphere