]> git.localhorst.tv Git - blank.git/blobdiff - src/geometry/geometry.cpp
fix box/box intersection test …again
[blank.git] / src / geometry / geometry.cpp
index 7d099cf156de9caa2650983395a7dfc562f03a8f..ebd47e9ab9cb10aebe5a7ec760ee74d368dfb460 100644 (file)
@@ -152,6 +152,7 @@ bool Intersection(
        for (const glm::vec3 &axis : axes) {
                if (any(isnan(axis))) {
                        // can result from the cross products if A and B have parallel axes
+                       ++cur_axis;
                        continue;
                }
                float a_min = std::numeric_limits<float>::infinity();