]> git.localhorst.tv Git - blank.git/blobdiff - src/world/Chunk.hpp
okay, I screwed up collision it seems ^^
[blank.git] / src / world / Chunk.hpp
index e8773faa5dbf84691d9fbbcf054c796c6e1a6bcc..4938c1b1a7a92f3f34c861e30287ca23491c6686 100644 (file)
@@ -14,6 +14,7 @@
 namespace blank {
 
 class BlockType;
+class Entity;
 class WorldCollision;
 
 /// cube of size 16 (256 tiles, 4096 blocks)
@@ -146,6 +147,12 @@ public:
                const glm::mat4 &Mchunk,
                std::vector<WorldCollision> &) noexcept;
 
+       bool Intersection(
+               const Entity &entity,
+               const glm::mat4 &Mentity,
+               const glm::mat4 &Mchunk,
+               std::vector<WorldCollision> &) noexcept;
+
        void Position(const ExactLocation::Coarse &pos) noexcept { position = pos; }
        const ExactLocation::Coarse &Position() const noexcept { return position; }
        glm::mat4 Transform(const ExactLocation::Coarse &offset) const noexcept {