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

Make rl.MatrixToFloatV do same thing in Odin as in C
This commit is contained in:
gingerBill
2024-06-12 23:15:48 +01:00
committed by GitHub

View File

@@ -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)
}