Ejemplo n.º 1
0
        public bool OverlapsFullyOrPartially(OrientedBox orientedBox)
        {
            Vector3 closestPointToSphereCenter = orientedBox.GetClosestPointToPoint(_center);

            return((closestPointToSphereCenter - _center).sqrMagnitude <= _radius * _radius);
        }