amethyst / amethyst/bracket-lib

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

Ouverte
#330 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Rust
Étoiles
1.7k
Forks
126
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.