From d0936f9133319fdb6edd109e8fefa16d15bd3c8b Mon Sep 17 00:00:00 2001 From: Dander7BD Date: Wed, 4 Dec 2013 14:22:25 +0100 Subject: [PATCH] InverseRotationMatrix fixed Compiler overstepping its bound, doing whatever it wants. --- Code/OysterMath/OysterMath.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Code/OysterMath/OysterMath.cpp b/Code/OysterMath/OysterMath.cpp index a82658ee..421ebc0b 100644 --- a/Code/OysterMath/OysterMath.cpp +++ b/Code/OysterMath/OysterMath.cpp @@ -103,7 +103,8 @@ namespace Oyster { namespace Math3D Float4x4 & InverseRotationMatrix( const Float4x4 &rotation, Float4x4 &targetMem ) { - return targetMem = ::LinearAlgebra3D::InverseRotationMatrix( rotation ); +// return targetMem = ::LinearAlgebra3D::InverseRotationMatrix( rotation ); + return targetMem = rotation.GetTranspose(); } Float4x4 & OrientationMatrix( const Float3x3 &rotation, const Float3 &translation, Float4x4 &targetMem )