예제 #1
0
        protected virtual bool IntersectsSphere(BoundingSphere boundingSphere)
        {
            //if (Center.DistanceTo(boundingSphere.Center) < (_size / 2 + boundingSphere.Radius))
            //    return true;

            return false;
        }
예제 #2
0
        private bool EnclosesSphere(BoundingSphere boundingSphere)
        {
            float distance = _center.DistanceTo(boundingSphere.Center);

            return distance < _radius && (_radius - distance) > boundingSphere.Radius;
        }
예제 #3
0
 private bool IntersectsSphere(BoundingSphere boundingSphere)
 {
     return _center.DistanceTo(boundingSphere.Center) < (_radius + boundingSphere.Radius);
 }
예제 #4
0
 protected override bool IntersectsSphere(BoundingSphere boundingSphere)
 {
     return DoesCubeIntersectSphere(_min, _max, boundingSphere.Center, boundingSphere.Radius);
 }