ソースを参照

fix bug in QuaternionFromVector3ToVector3 (#1263)

pull/1264/head
jvocaturo 4年前
committed by GitHub
コミット
6e84120b89
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      src/raymath.h

+ 1
- 1
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

読み込み中…
キャンセル
保存