Przeglądaj źródła

Fixed getRadius

Marco Bellan 8 lat temu
rodzic
commit
cb7984e18f
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      Source/BansheeUtility/Source/BsAABox.cpp

+ 1 - 1
Source/BansheeUtility/Source/BsAABox.cpp

@@ -458,7 +458,7 @@ namespace bs
 
 	float AABox::getRadius() const
 	{
-		return ((mMaximum + mMinimum) * 0.5).length();
+		return ((mMaximum - mMinimum) * 0.5).length();
 	}
 
 	float AABox::getVolume() const