Skip to content

Commit 1a1d3f0

Browse files
authored
fix interpolate matrices (scp-fs2open#6996)
1 parent 109c2b5 commit 1a1d3f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/math/vecmat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2988,7 +2988,7 @@ void vm_interpolate_matrices(matrix* out_orient, const matrix* curr_orient, cons
29882988
matrix rot_matrix;
29892989

29902990
vm_quaternion_rotate(&rot_matrix, t * theta, &rot_axis); // get the matrix that rotates current to our interpolated matrix
2991-
vm_matrix_x_matrix(out_orient, &rot_matrix, curr_orient); // do the final rotation
2991+
vm_matrix_x_matrix(out_orient, curr_orient, &rot_matrix); // do the final rotation
29922992

29932993
}
29942994

0 commit comments

Comments
 (0)