Fix bounding box size setter

This commit is contained in:
Wojciech Figat
2022-01-17 10:12:05 +01:00
parent abb0a3f0cc
commit 465c857ff2
2 changed files with 17 additions and 48 deletions

View File

@@ -127,8 +127,9 @@ public:
{
Vector3 center;
GetCenter(center);
Minimum = center - value;
Maximum = center + value;
const Vector3 sizeHalf = value * 0.5f;
Minimum = center - sizeHalf;
Maximum = center + sizeHalf;
}
/// <summary>