From 786ffb1ba1149ea4717d09a87323eef0718414f8 Mon Sep 17 00:00:00 2001 From: Jorijn van der Graaf Date: Sat, 7 Mar 2026 20:12:33 +0100 Subject: [PATCH] sphere box test --- interfaces/Crafter.Math-Intersection.cppm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interfaces/Crafter.Math-Intersection.cppm b/interfaces/Crafter.Math-Intersection.cppm index ced5301..545e8b9 100755 --- a/interfaces/Crafter.Math-Intersection.cppm +++ b/interfaces/Crafter.Math-Intersection.cppm @@ -195,7 +195,7 @@ namespace Crafter { export template constexpr bool IntersectionTestSphereOrientatedBox(Vector spherePos, T sphereRadius, Vector boxSize, MatrixRowMajor boxMat) { - Vector d = spherePos - Vector(boxMat.m[0][4], boxMat.m[1][4], boxMat.m[2][4]); + Vector d = spherePos - Vector(boxMat.m[0][3], boxMat.m[1][3], boxMat.m[2][3]); T distSq = 0.0f;