mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-09 19:36:33 +00:00
fix bug in QuaternionFromVector3ToVector3 (#1263)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user