fix bug in QuaternionFromVector3ToVector3

This commit is contained in:
Jeremiah Vocaturo 2020-05-27 16:04:59 +01:00
parent c43e889e39
commit 70faa3d7d3

View File

@ -1284,7 +1284,7 @@ RMDEF Quaternion QuaternionFromVector3ToVector3(Vector3 from, Vector3 to)
result.x = cross.x; result.x = cross.x;
result.y = cross.y; result.y = cross.y;
result.z = cross.y; result.z = cross.z;
result.w = 1.0f + cos2Theta; // NOTE: Added QuaternioIdentity() result.w = 1.0f + cos2Theta; // NOTE: Added QuaternioIdentity()
// Normalize to essentially nlerp the original and identity to 0.5 // Normalize to essentially nlerp the original and identity to 0.5