Added collision

This commit is contained in:
anime committed 2026-04-26 22:18:42 +06:00
1 parent 2ee288cbe0
commit cebbb8bb5d
6 files changed
+465 -21

No files matched your search

+10 -1
View File
@@ -13,6 +13,8 @@
#include "dialogue/DialogueSystem.h"
#include "SparkEmitter.h"
#include <functional>
#include <cstdint>
#include <unordered_map>
namespace ZL
{
@@ -112,6 +114,13 @@ namespace ZL
protected:
Renderer& renderer;
Inventory& inventory;
private:
void resolveCharacterCollisions();
void updateDynamicReplans(int64_t deltaMs);
std::unordered_map<Character*, Eigen::Vector3f> lastCharacterPositions;
std::unordered_map<Character*, int64_t> replanCooldownRemainingMs;
};
} // namespace ZL
} // namespace ZL