removed redundant copy

This commit is contained in:
2025-12-19 23:19:47 +03:00
parent 94ee8751af
commit d085681efe
2 changed files with 3 additions and 4 deletions

View File

@@ -75,8 +75,9 @@ namespace omath::collision
if (heap.empty())
break;
const int fidx = heap.top().idx;
const Face face = faces[fidx];
//FIXME: STORE REF VALUE, DO NOT USE
// AFTER IF STATEMENT BLOCK
const Face& face = faces[heap.top().idx];
// Get the furthest point in face normal direction
const VectorType p = support_point(a, b, face.n);