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

2
.idea/omath.iml generated
View File

@@ -1,2 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module classpath="CMake" type="CPP_MODULE" version="4" />

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);