Exemple #1
0
        public Boolean IsBoxVisibleToPoint(Vector3 startPoint, OrientedBoundingBox blockingBox)
        {
            Boolean isBlocked = Corners.All(t => blockingBox.LineInBox(startPoint, t));

            if (!blockingBox.LineInBox(startPoint, blockingBox.Origin))
            {
                isBlocked = false;
            }

            return(isBlocked);
        }