As described above, the collapse of a rotating cloud of gas and dust leads to the formation of an accretion disk through which matter is channeled onto a central protostar.
If the incoming projectile were a white dwarf—a superdense star that packs the mass of the sun into a body a hundredth the size—the residents of Earth would be treated to quite a fireworks show.