/// <summary> /// Find route from src to dst, using the given positionings /// </summary> public static AStarResult Find(IEnvironmentObject env, IntVector3 src, DirectionSet srcPositioning, IntVector3 dst, DirectionSet dstPositioning, int maxNodeCount = 200000, CancellationToken? cancellationToken = null) { var initLocs = env.GetPositioningLocations(src, srcPositioning); var target = new AStarDefaultTarget(env, dst, dstPositioning); return Find(initLocs, target, maxNodeCount, cancellationToken); }
/// <summary> /// Find route from src to dst, using the given positionings /// </summary> public static AStarResult Find(IEnvironmentObject env, IntVector3 src, DirectionSet srcPositioning, IntVector3 dst, DirectionSet dstPositioning, int maxNodeCount = 200000, CancellationToken?cancellationToken = null) { var initLocs = env.GetPositioningLocations(src, srcPositioning); var target = new AStarDefaultTarget(env, dst, dstPositioning); return(Find(initLocs, target, maxNodeCount, cancellationToken)); }