diff --git a/include/omath/collision/epa_algorithm.hpp b/include/omath/collision/epa_algorithm.hpp index e6a3c0b..2c7f7e9 100644 --- a/include/omath/collision/epa_algorithm.hpp +++ b/include/omath/collision/epa_algorithm.hpp @@ -11,7 +11,8 @@ namespace omath::collision { template - concept EpaVector = requires(const V& a, const V& b, float s) { + concept EpaVector = requires(const V& a, const V& b, float s) + { { a - b } -> std::same_as; { a.cross(b) } -> std::same_as; { a.dot(b) } -> std::same_as; @@ -280,7 +281,7 @@ namespace omath::collision simplex.push_front(support); auto direction = -support; - for (;;) + while (true) { support = find_support_vertex(a, b, direction); if (support.dot(direction) <= 0.f)