Explorar o código

Fixed getRadius

Marco Bellan %!s(int64=8) %!d(string=hai) anos
pai
achega
cb7984e18f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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