Fixing hardcoded rectangle values

This commit is contained in:
Benjamin Ward
2015-07-19 20:45:37 -04:00
parent e2f0091c1d
commit 18e15bf2bb
@@ -100,7 +100,7 @@ namespace MonoGame.Extended
public ContainmentType Contains(Rectangle rectangle)
{
return GetBoundingFrustum().Contains(new BoundingBox(new Vector3(0, 0, 0), new Vector3(15, 15, 0)));
return GetBoundingFrustum().Contains(new BoundingBox(new Vector3(0, 0, 0), new Vector3(rectangle.Size.ToVector2(), 0)));
}
}
}