From 6e84120b89af0246dae7be5edad059a993ce59e3 Mon Sep 17 00:00:00 2001 From: jvocaturo <52702554+jvocaturo@users.noreply.github.com> Date: Wed, 27 May 2020 16:52:23 +0100 Subject: [PATCH] fix bug in QuaternionFromVector3ToVector3 (#1263) --- src/raymath.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raymath.h b/src/raymath.h index c00aa06fb..b51573e72 100644 --- a/src/raymath.h +++ b/src/raymath.h @@ -1284,7 +1284,7 @@ RMDEF Quaternion QuaternionFromVector3ToVector3(Vector3 from, Vector3 to) result.x = cross.x; result.y = cross.y; - result.z = cross.y; + result.z = cross.z; result.w = 1.0f + cos2Theta; // NOTE: Added QuaternioIdentity() // Normalize to essentially nlerp the original and identity to 0.5