Inheritance: AStarEnvTargetBase
Ejemplo n.º 1
0
        /// <summary>
        /// Find route from src to destination area
        /// </summary>
        public static AStarResult FindArea(IEnvironmentObject env, IntVector3 src, DirectionSet srcPositioning, IntGrid3 dstArea,
                                           int maxNodeCount = 200000, CancellationToken?cancellationToken = null)
        {
            var initLocs = env.GetPositioningLocations(src, srcPositioning);
            var target   = new AStarAreaTarget(env, dstArea);

            return(Find(initLocs, target, maxNodeCount, cancellationToken));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Find route from src to destination area
        /// </summary>
        public static AStarResult FindArea(IEnvironmentObject env, IntVector3 src, DirectionSet srcPositioning, IntGrid3 dstArea,
			int maxNodeCount = 200000, CancellationToken? cancellationToken = null)
        {
            var initLocs = env.GetPositioningLocations(src, srcPositioning);
            var target = new AStarAreaTarget(env, dstArea);
            return Find(initLocs, target, maxNodeCount, cancellationToken);
        }