X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2Fchunk.cpp;h=7591266be5433ecb6b7a0e6c200e1eb3026a68e7;hb=419e33e565bffbaf0416ed4a5f80e9c81f62a479;hp=2216617ec52aac4dc59b317329d2103da84d872a;hpb=c04ea5a6f67d446ea29aa2e88dc4c666956d7732;p=blank.git diff --git a/src/world/chunk.cpp b/src/world/chunk.cpp index 2216617..7591266 100644 --- a/src/world/chunk.cpp +++ b/src/world/chunk.cpp @@ -5,6 +5,7 @@ #include "Generator.hpp" #include +#include #include #include @@ -486,7 +487,10 @@ bool Chunk::Intersection( const glm::mat4 &Mbox, const glm::mat4 &Mchunk ) const noexcept { - if (!blank::Intersection(box, Mbox, Bounds(), Mchunk)) { + float penetration; + glm::vec3 normal; + + if (!blank::Intersection(box, Mbox, Bounds(), Mchunk, penetration, normal)) { return false; } for (int idx = 0, z = 0; z < depth; ++z) {