From 747dbd3529ce5566592e64953609a4fca88e0b90 Mon Sep 17 00:00:00 2001 From: Antonis Geralis <43617260+planetis-m@users.noreply.github.com> Date: Tue, 7 May 2024 00:20:04 +0300 Subject: [PATCH] fix --- src/raymath.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/raymath.h b/src/raymath.h index 6e6f51715..07983b0f4 100644 --- a/src/raymath.h +++ b/src/raymath.h @@ -2366,14 +2366,13 @@ RMAPI Quaternion QuaternionFromAxisAngle(Vector3 axis, float angle) { angle *= 0.5f; - float lengthSq = 0.0f; + float length = 0.0f; float ilength = 0.0f; // Vector3Normalize(axis) length = axisLength; if (length == 0.0f) length = 1.0f; ilength = 1.0f/length; - axis.x *= ilength; axis.y *= ilength; axis.z *= ilength;