Explorar el Código

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

BearishSun hace 8 años
padre
commit
6828802ce7
Se han modificado 1 ficheros con 1 adiciones y 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).length();
+		return ((mMaximum - mMinimum) * 0.5).length();
 	}
 
 	float AABox::getVolume() const