Make rl.MatrixToFloatV transpose the matrix before transmuting it to [16]f32, so it does the same thing as the raymath version implemented in C.

This commit is contained in:
Karl Zylinski
2024-06-12 19:54:14 +02:00
parent 603581aa53
commit d37b5a7b67
+1 -1
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)
}