Using LayerGridGraph.Linecast, i’m trying to check if target is visible, and can be shoot. But i encountered a problem when trying to cast line over empty nodes, or from different graph layers. Line always hits the edge of layer (Images below say a thousand words )
I debugged Linecast method, and calculation stop because “GetNeighbourAlongDirection” returns nothing at some point.
I found similar problem here (How to check if there is a straight path to target (layer grid graph)) but that did not help.
Any idea how to solve this? Where should i start?
Any help will be appreciated, Thanks
PS: Using pro version