diff options
| author | jvocaturo <[email protected]> | 2020-05-27 16:52:23 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-05-27 17:52:23 +0200 |
| commit | 6e84120b89af0246dae7be5edad059a993ce59e3 (patch) | |
| tree | 137b9a40297a3f96782be14202bb756aa6b17589 /src/raymath.h | |
| parent | c43e889e3929f8d1bee05e56443946dd970c127e (diff) | |
| download | raylib-6e84120b89af0246dae7be5edad059a993ce59e3.tar.gz raylib-6e84120b89af0246dae7be5edad059a993ce59e3.zip | |
fix bug in QuaternionFromVector3ToVector3 (#1263)
Diffstat (limited to 'src/raymath.h')
| -rw-r--r-- | src/raymath.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/raymath.h b/src/raymath.h index c00aa06f..b51573e7 100644 --- a/src/raymath.h +++ b/src/raymath.h @@ -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 |
