static public bool DidNotHit(this RaycastHit item) { if (item.DidHit() == false) { return(true); } return(false); }
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()); }
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()); }