Corrected OrientationMatrix_LookAtDirection

Z Axis were incorrectly negated
This commit is contained in:
Dander7BD 2013-11-22 10:23:00 +01:00
parent 6494bcb09e
commit f7240ef16b
1 changed files with 1 additions and 1 deletions

View File

@ -392,7 +392,7 @@ namespace LinearAlgebra3D
::LinearAlgebra::Vector3<ScalarType> right = normalizedDirection.Cross( normalizedUpVector ).GetNormalized();
return ::LinearAlgebra::Matrix4x4<ScalarType>( ::LinearAlgebra::Vector4<ScalarType>( right, 0.0f ),
::LinearAlgebra::Vector4<ScalarType>( right.Cross( normalizedDirection ), 0.0f ),
::LinearAlgebra::Vector4<ScalarType>( -normalizedDirection, 0.0f ),
::LinearAlgebra::Vector4<ScalarType>( normalizedDirection, 0.0f ),
::LinearAlgebra::Vector4<ScalarType>( worldPos, 1.0f ) );
}