X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=src%2Fworld%2FWorld.hpp;h=183fa603209af587d23d18f8f2b0e40c0a98d177;hb=32909aa3224ec0ed5656721178eb6ad31cd047df;hp=7f38942ea2e4d9b4389dc97e2a430a1458951ff3;hpb=419e33e565bffbaf0416ed4a5f80e9c81f62a479;p=blank.git diff --git a/src/world/World.hpp b/src/world/World.hpp index 7f38942..183fa60 100644 --- a/src/world/World.hpp +++ b/src/world/World.hpp @@ -8,6 +8,7 @@ #include "../model/shapes.hpp" #include +#include #include @@ -15,6 +16,7 @@ namespace blank { class BlockLighting; class DirectionalLighting; +class WorldCollision; class World { @@ -44,7 +46,8 @@ public: float &dist, glm::vec3 &normal); - bool Intersection(const Entity &e); + bool Intersection(const Entity &e, std::vector &); + void Resolve(const Entity &e, std::vector &); BlockTypeRegistry &BlockTypes() { return blockType; }