public bool DistanceQuery(NativeBVHTree.DistanceQueryInput query)
        {
            fixed(Collider *target = &this)
            {
                switch (type)
                {
                case Type.Box:
                    return(((BoxCollider *)target->data)->DistanceQuery(query));

                case Type.Sphere:
                    return(((SphereCollider *)target->data)->DistanceQuery(query));

#if ENABLE_UNITY_COLLECTIONS_CHECKS
                default:
                    throw new ArgumentOutOfRangeException();
#endif
                }
            }
        }
 public bool DistanceQuery(NativeBVHTree.DistanceQueryInput query)
 {
     return(math.distance(query.origin, center) - radius < query.maxDistance);
 }
 public bool DistanceQuery(NativeBVHTree.DistanceQueryInput query)
 {
     return(IntersectionUtils.IsInRange(LowerBound, UpperBound, query.origin, query.maxDistance));
 }