increase cost if avoided instead of discarding
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user