mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31:51 +00:00
increase cost if avoided instead of discarding
This commit is contained in:
parent
a621b179d3
commit
3c9c4c403c
2 changed files with 31 additions and 17 deletions
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue