From 8378707f211ac95b86c01ddbad8607048c99d76e Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Fri, 3 May 2024 18:09:58 +0900 Subject: [PATCH] Minor refactoring --- src/sc_sacd.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/sc_sacd.cpp b/src/sc_sacd.cpp index 3e347f6..7c6244c 100644 --- a/src/sc_sacd.cpp +++ b/src/sc_sacd.cpp @@ -362,10 +362,8 @@ int SC_SACD_Sphere_Box_Collision(const SC_SACD_Sphere *sphere, sphere_box_normal / std::sqrt(SC_SACD_Dot_Product(sphere_box_normal, sphere_box_normal)); - std::vector normals{sphere_box_normal}; - std::vector box_minmaxes = - SC_SACD_Get_Box_MinMax(box, normals); + SC_SACD_Get_Box_MinMax(box, {&sphere_box_normal, 1}); float projected_0 = SC_SACD_Dot_Product( sphere_box_normal, sphere_pos + sphere_box_normal * sphere->radius);