]> git.localhorst.tv Git - blank.git/blobdiff - src/world/chunk.cpp
entity/world collision response
[blank.git] / src / world / chunk.cpp
index 2c5e7ec4ebad297570c5ef71fd2799822e5e30cc..a65f5c31d9b1d0081ab3204903b87cbe10bd562d 100644 (file)
@@ -500,7 +500,7 @@ bool Chunk::Intersection(
                for (int y = 0; y < height; ++y) {
                        for (int x = 0; x < width; ++x, ++idx) {
                                const BlockType &type = Type(idx);
-                               if (!type.visible) {
+                               if (!type.collision) {
                                        continue;
                                }
                                if (type.shape->Intersects(Mchunk * ToTransform(Pos(x, y, z), idx), box, Mbox, penetration, normal)) {