Skip to content
This repository has been archived by the owner on Oct 30, 2019. It is now read-only.

Commit

Permalink
&& 1
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo committed Apr 2, 2014
1 parent c69880c commit 0a4ecb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MonoGame.Framework/BoundingBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public ContainmentType Contains(BoundingFrustum frustum)

public ContainmentType Contains(BoundingSphere sphere)
{
if ( sphere.Center.X - Min.X >= sphere.Radius
if ( sphere.Center.X - Min.X >= sphere.Radius &&
sphere.Center.Y - Min.Y >= sphere.Radius &&
sphere.Center.Z - Min.Z >= sphere.Radius &&
Max.X - sphere.Center.X >= sphere.Radius &&
Expand Down

0 comments on commit 0a4ecb2

Please sign in to comment.