diff --git a/include/omath/collision/mesh_collider.hpp b/include/omath/collision/mesh_collider.hpp index 2534cf9..14fc505 100644 --- a/include/omath/collision/mesh_collider.hpp +++ b/include/omath/collision/mesh_collider.hpp @@ -16,16 +16,13 @@ namespace omath::collision using VertexType = Vector3; explicit MeshCollider(MeshType mesh): m_mesh(std::move(mesh)) { - } [[nodiscard]] const Vector3& find_furthest_vertex(const Vector3& direction) const { return *std::ranges::max_element(m_mesh.m_vertex_buffer, [&direction](const auto& first, const auto& second) - { - return first.dot(direction) < second.dot(direction); - }); + { return first.dot(direction) < second.dot(direction); }); } [[nodiscard]]