amethyst / amethyst/bracket-lib

[Question] Is there a maximum path cost for a_star_search() before it gives up?

未关闭
#330 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Rust
星标
1.7k
派生
126
PR 合并指标
30 天内没有已合并 PR

描述

I'm using `a_star_search()` to dig corridors between rooms, and set the cost of each tile between `1.0` and `100.0` (the external walls are `f32::MAX`).

I noticed the function often fails to connect 2 rooms together, and the issue solves itself when I adjust the costs between `0.1` and `10.0`. So it's not really an issue as the result is visually identical, but I spent quite some time finding the root cause of it.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。