Support Forum

Neighboring objects using grid graph

I want to use a hexagonal grid graph but wanted to see if I was missing something before digging deep into something like the Catlike Coding Hex-Map tutorials.

Essentially, I need objects to know when specific neighboring nodes are occupied or not. I only want my player to be attacked by enemies on the left or right sides like in this image:

I could do this with raycasts but certainly there’s a way to systematically check the nodes of the graph to get this information in a more performant way? Performance is a concern as there will be lots of objects on this graph.


This package doesn’t keep track of which cells any objects occupy. So any such information would have to be stored and processed by you.