amethyst / amethyst/bracket-lib

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

Đang mở
#330 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Rust
Star
1.7k
Fork
126
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.