Browse Source

Merge pull request #82 from MarcoROG/patch-1

Fixed AABox::GetRadius
Marko Pintera 8 năm trước cách đây
mục cha
commit
688a5709b1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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