Explorar o código

Merge branch 'master' of https://github.com/BearishSun/BansheeEngine

BearishSun %!s(int64=8) %!d(string=hai) anos
pai
achega
6828802ce7
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
 	float AABox::getRadius() const
 	{
 	{
-		return (mMaximum - mMinimum).length();
+		return ((mMaximum - mMinimum) * 0.5).length();
 	}
 	}
 
 
 	float AABox::getVolume() const
 	float AABox::getVolume() const