]> git.localhorst.tv Git - blank.git/blobdiff - src/model/geometry.cpp
fix ray/obb intersection test
[blank.git] / src / model / geometry.cpp
index 416d930c4f68d0c24a0f690851264b98556b855b..ed9b4b7ed5339d5805fb33287b491c6ef2e5eb6d 100644 (file)
@@ -35,7 +35,7 @@ bool Intersection(
                                return false;
                        }
                } else {
-                       if (aabb.min[i] - e < 0.0f || -aabb.max[i] - e > 0.0f) {
+                       if (aabb.min[i] - e > 0.0f || aabb.max[i] - e < 0.0f) {
                                return false;
                        }
                }