Minor refactoring
All checks were successful
Run UnitTest / build-and-run-UnitTest (push) Successful in 4s
All checks were successful
Run UnitTest / build-and-run-UnitTest (push) Successful in 4s
This commit is contained in:
parent
12aee049c0
commit
8378707f21
1 changed files with 1 additions and 3 deletions
|
@ -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<SC_SACD_Vec3> normals{sphere_box_normal};
|
||||
|
||||
std::vector<SC_SACD_MinMax> 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);
|
||||
|
|
Loading…
Reference in a new issue