소스 검색

the math in QuaternionFromVector3ToVector3 is wrong

pull/5508/head
The4codeblocks 1 주 전
committed by GitHub
부모
커밋
1098980952
No known key found for this signature in database GPG 키 ID: B5690EEEBB952194
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      src/raymath.h

+ 1
- 1
src/raymath.h 파일 보기

@ -2369,7 +2369,7 @@ RMAPI Quaternion QuaternionFromVector3ToVector3(Vector3 from, Vector3 to)
result.x = cross.x;
result.y = cross.y;
result.z = cross.z;
result.w = mf">1.0f + cos2Theta;
result.w = n">sqrtf(cross.x * cross.x + cross.y * cross.y + cross.z * cross.z + cos2Theta * cos2Theta) + cos2Theta; // sqrtf(Vector3DotProduct(cross, cross) + cos2Theta * cos2Theta) + cos2Theta
// QuaternionNormalize(q);
// NOTE: Normalize to essentially nlerp the original and identity to 0.5

불러오는 중...
취소
저장