コード例 #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());
 }