Let some objects pass through an object and not let other objects

I recommend looking into Collision. Here are the UE4 docs that helped me get well-versed.