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

Bugfix: Fixing bounding sphere transform

BearishSun 8 лет назад
Родитель
Сommit
f5921858e8
1 измененных файлов с 1 добавлено и 3 удалено
  1. 1 3
      Source/BansheeUtility/Math/BsSphere.cpp

+ 1 - 3
Source/BansheeUtility/Math/BsSphere.cpp

@@ -27,12 +27,10 @@ namespace bs
 
 	void Sphere::transform(const Matrix4& matrix)
 	{
-		Matrix3 rotMatrix;
-
 		float lengthSqrd[3];
 		for(UINT32 i = 0; i < 3; i++)
 		{
-			Vector3 column = rotMatrix.getColumn(i);
+			Vector3 column = matrix.getColumn(i);
 			lengthSqrd[i] = column.dot(column);
 		}