예제 #1
0
        static public bool DidNotHit(this RaycastHit item)
        {
            if (item.DidHit() == false)
            {
                return(true);
            }

            return(false);
        }
예제 #2
0
 static public bool CastDiscerning(this Ray item, Predicate <RaycastHit> predicate, out RaycastHit hit, float max_distance = float.PositiveInfinity, int layer_mask = IntBits.ALL_BITS)
 {
     hit = item.CastDiscerningGetHit(predicate, max_distance, layer_mask);
     return(hit.DidHit());
 }
예제 #3
0
 static public bool MultiRaycast(float max_distance, int layer_mask, out RaycastHit hit, IEnumerable <Ray> rays)
 {
     hit = MultiRaycastGetHit(max_distance, layer_mask, rays);
     return(hit.DidHit());
 }