소스 검색

Merge pull request #3742 from karl-zylinski/fix-raymath-matrix-to-float

Make rl.MatrixToFloatV do same thing in Odin as in C
gingerBill 1 년 전
부모
커밋
a67df07392
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      vendor/raylib/raymath.odin

+ 1 - 1
vendor/raylib/raymath.odin

@@ -668,7 +668,7 @@ MatrixLookAt :: proc "c" (eye, target, up: Vector3) -> Matrix {
 // Get float array of matrix data
 @(require_results)
 MatrixToFloatV :: proc "c" (mat: Matrix) -> [16]f32 {
-	return transmute([16]f32)mat
+	return transmute([16]f32)linalg.transpose(mat)
 }