From b7e770e501a3ed1a30a029b14972b87f64765640 Mon Sep 17 00:00:00 2001 From: Tea Date: Thu, 23 May 2024 18:56:40 +0200 Subject: [PATCH] Fixed quaternion rotate --- glm/ext/quaternion_transform.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glm/ext/quaternion_transform.inl b/glm/ext/quaternion_transform.inl index 7e773fbd..0eeb38fd 100644 --- a/glm/ext/quaternion_transform.inl +++ b/glm/ext/quaternion_transform.inl @@ -18,7 +18,7 @@ namespace glm T const AngleRad(angle); T const Sin = sin(AngleRad * static_cast(0.5)); - return q * qua::wxyz(cos(AngleRad * static_cast(0.5)), Tmp.x * Sin, Tmp.y * Sin, Tmp.z * Sin); + return qua::wxyz(cos(AngleRad * static_cast(0.5)), Tmp.x * Sin, Tmp.y * Sin, Tmp.z * Sin) * q; } }//namespace glm