I am having a nullreferenceexception error in my code in this line:
public bool BoundingVolumeIsInView(BoundingSphere sphere)
{
**return (Frustum.Contains(sphere) != ContainmentType.Disjoint);**
}
Please tell me what i am doing wrong?
Thanks
Frustum
is probablynull
. Use a debugger and check it. You could do something like this to prevent null pointer exceptions