From a650807b94b69ce45666ed19d57fcbf806ad7d46 Mon Sep 17 00:00:00 2001 From: PedroEdiaz Date: Sun, 29 Sep 2024 16:08:18 -0600 Subject: [PATCH] ISSUE #1: Normalize quaternion to avoid deformation --- src/input.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/input.c b/src/input.c index fb272d1..6770afc 100644 --- a/src/input.c +++ b/src/input.c @@ -54,5 +54,6 @@ end: glm_quat_rotatev( p, axis[0], axis[0] ); glm_quat_rotatev( p, axis[1], axis[1] ); glm_quat_rotatev( p, axis[2], axis[2] ); + glm_quat_normalize( q ); return q; }