소스 검색
fix bug in QuaternionFromVector3ToVector3 (#1263)
pull/1264/head
jvocaturo
4 년 전
committed by
GitHub
No known key found for this signature in database
GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일과
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 |
|
|
|