increase cost if avoided instead of discarding

This commit is contained in:
MihailRis
2025-08-31 19:41:12 +03:00
parent a621b179d3
commit 3c9c4c403c
2 changed files with 31 additions and 17 deletions
+3 -1
View File
@@ -86,7 +86,9 @@ namespace voxels {
std::unordered_map<int, Agent> agents;
int nextAgent = 1;
int getSurfaceAt(const Agent& agent, const glm::ivec3& pos, int maxDelta);
int getSurfaceAt(
const Agent& agent, const glm::ivec3& pos, int maxDelta, float& cost
);
int checkPoint(const Agent& agent, int x, int y, int z);
};