Hi there, first of, great resource you put together, bought the pro version yesterday to support you and to get access to ConstantPath.
I am writing a turn based strategy game where I use ConstantPath to search for movement possibilities of a unit based on its speed (speed is the number of nodes it could traverse in a single turn). I haven’t quite figured out if it is possible to specify the number of nodes (including diagonal movement) when generating a graph so that specifying e.g. 3 would result in a square area to be walkable as opposed to the G score which results in a more circle like result area. Any pointers in the right direction if this is doable are appreciated.
However the more pressing question I have is if it is possible to specify certain nodes to be only walkable to (i.e. when pathfinding reaches it during path calculation that it would consider it the end node of said path). What I am looking for is when my unit wants to calculate its possible movement it needs to stop once it is adjacent to an enemy unit. And if its speed is 5 and the enemy unit is located 3 nodes away it should only allow movement up to but not including the enemy unit but should allow movement up to its speed in any direction from any nodes that do not have a connection to an enemy unit.
I was thinking that specifying a node to be only walkable to from other neighbouring nodes would accomplish this, however I am at a loss as to how to get started with this or if it is at all possible.
Any help is appreciated,