Minor fixes and changes

This commit is contained in:
Wojciech Figat
2022-02-21 20:14:46 +01:00
parent 5d4c168e1e
commit 8082f5f909
6 changed files with 9 additions and 23 deletions

View File

@@ -1124,7 +1124,6 @@ bool CollisionsHelper::BoxIntersectsSphere(const BoundingBox& box, const Boundin
Vector3 vector;
Vector3::Clamp(sphere.Center, box.Minimum, box.Maximum, vector);
const float distance = Vector3::DistanceSquared(sphere.Center, vector);
return distance <= sphere.Radius * sphere.Radius;
}