Sfoglia il codice sorgente

Bugfix: Fixing bounding sphere transform

BearishSun 8 anni fa
parent
commit
f5921858e8
1 ha cambiato i file con 1 aggiunte e 3 eliminazioni
  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);
 		}