无法找到具有相同 startNode 的多个路径
作者: IndyVC创建于 2023年7月27日更新于 2023年7月27日
目前,网格无法为多个路径重新使用起始节点。我的假设是因为 startNode 获得了 'closed state' 状态。解决方案是:`finder.findPath(x0, y0, x1, y1, this._grid.clone())`,但复制似乎在需要查找多条路径时性能不高。有什么方法可以优化/考虑一下吗?
内容来源: qiao/PathFinding.js
目前,网格无法为多个路径重新使用起始节点。我的假设是因为 startNode 获得了 'closed state' 状态。解决方案是:`finder.findPath(x0, y0, x1, y1, this._grid.clone())`,但复制似乎在需要查找多条路径时性能不高。有什么方法可以优化/考虑一下吗?
内容来源: qiao/PathFinding.js