Browse Source

Fixed getRadius

Marco Bellan 8 years ago
parent
commit
cb7984e18f
1 changed files with 1 additions and 1 deletions
  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