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;