Просмотр исходного кода

Merge pull request #321 from blackberry-gaming/next-sgrenier

Fixed issue with incorrect right and left vectors returned from Matrix.
Steve Grenier 13 лет назад
Родитель
Сommit
dfc55480df
1 измененных файлов с 6 добавлено и 6 удалено
  1. 6 6
      gameplay/src/Matrix.cpp

+ 6 - 6
gameplay/src/Matrix.cpp

@@ -554,18 +554,18 @@ void Matrix::getLeftVector(Vector3* dst) const
 {
     assert(dst);
 
-    dst->x = m[0];
-    dst->y = m[1];
-    dst->z = m[2];
+    dst->x = -m[0];
+    dst->y = -m[1];
+    dst->z = -m[2];
 }
 
 void Matrix::getRightVector(Vector3* dst) const
 {
     assert(dst);
 
-    dst->x = -m[0];
-    dst->y = -m[1];
-    dst->z = -m[2];
+    dst->x = m[0];
+    dst->y = m[1];
+    dst->z = m[2];
 }
 
 void Matrix::getForwardVector(Vector3* dst) const