]> git.localhorst.tv Git - blank.git/blobdiff - src/world/Chunk.hpp
test entities for world collision
[blank.git] / src / world / Chunk.hpp
index 8d6816c29b8f526527bbb8fb07688f74132c340c..8a2ded64e53970ee5929ce9aa336d90f41981d45 100644 (file)
@@ -143,6 +143,11 @@ public:
                float &dist,
                glm::vec3 &normal) const noexcept;
 
+       bool Intersection(
+               const AABB &box,
+               const glm::mat4 &Mbox,
+               const glm::mat4 &Mchunk) const noexcept;
+
        void Position(const Pos &pos) noexcept { position = pos; }
        const Pos &Position() const noexcept { return position; }
        glm::mat4 Transform(const Pos &offset) const noexcept {