From 58fe3ad44cde96c7789669baea8f24ead04cf6f8 Mon Sep 17 00:00:00 2001 From: Thompson Lee Date: Thu, 4 Aug 2016 06:41:36 -0400 Subject: [PATCH] K&R ... --- source/maths/mtx_lookat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/maths/mtx_lookat.c b/source/maths/mtx_lookat.c index 539e8b3..112f8a8 100644 --- a/source/maths/mtx_lookat.c +++ b/source/maths/mtx_lookat.c @@ -30,7 +30,8 @@ void Mtx_LookAt(C3D_Mtx* out, C3D_FVec cameraPosition, C3D_FVec cameraTarget, C3 out->r[2].z = zaxis.z; out->r[2].w = 0.0f; } - else { + else + { //In RH matrix, the Z is in Row 2 of 4, and the Y is in Row 3 of 4. out->r[1].x = xaxis.z; out->r[1].y = yaxis.z;