From f7240ef16b7e3bfb73de205b19bfae0292d1ddbe Mon Sep 17 00:00:00 2001 From: Dander7BD Date: Fri, 22 Nov 2013 10:23:00 +0100 Subject: [PATCH] Corrected OrientationMatrix_LookAtDirection Z Axis were incorrectly negated --- Code/OysterMath/LinearMath.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/OysterMath/LinearMath.h b/Code/OysterMath/LinearMath.h index ba427bb6..184ea1a7 100644 --- a/Code/OysterMath/LinearMath.h +++ b/Code/OysterMath/LinearMath.h @@ -392,7 +392,7 @@ namespace LinearAlgebra3D ::LinearAlgebra::Vector3 right = normalizedDirection.Cross( normalizedUpVector ).GetNormalized(); return ::LinearAlgebra::Matrix4x4( ::LinearAlgebra::Vector4( right, 0.0f ), ::LinearAlgebra::Vector4( right.Cross( normalizedDirection ), 0.0f ), - ::LinearAlgebra::Vector4( -normalizedDirection, 0.0f ), + ::LinearAlgebra::Vector4( normalizedDirection, 0.0f ), ::LinearAlgebra::Vector4( worldPos, 1.0f ) ); }