Here are modular flying robots that assemble mid-air and cooperatively fly. The structure has flying modules with a quadrotor within a cuboid frame. The modules attach others by matching vertical faces thanks to magnets. The swarm can assemble rapidly with proper alignment and motion error correction.
This video from Vijay Kumar shows these modular drones in action.