This cosmic ducky was once two comets. (European Space Agency via European Pressphoto Agency)

Comet 67P/Churyumov–Gerasimenko, the object currently being orbited by the European Space Agency's Rosetta spacecraft, has a pretty funky shape. It's often compared to a rubber duck: It has two lobes, one forming a large "body" and the other forming a smaller "head," that are connected by a "neck."

According to a paper published Monday in Nature, Comet 67P's lobes were once two totally separate objects. Its unusual shape can be attributed to its formation, which occurred when two space objects crashed together.

Until now, scientists thought the "neck" might be a place where erosion had occurred. The comet is constantly sending dust and gas into space, so if one spot in particular — the neck — had been more active than other parts of the comet, it could have whittled the icy rock into an uneven shape.

[Rosetta’s comet just made its closest pass of the sun]

But by studying high-resolution images from Rosetta and tracing the patterns of the onion-like layers that form the body of the comet, the researchers were able to determine that the two halves had formed and grown independently.

“The big news is that the layers of each lobe wrap independently, indicating that the two lobes grew separately and only joined together later in their history, gently ‘docking’ together during an ancient encounter that apparently did little damage to either partner,” Jay Melosh, a professor of planetary science at Purdue University in Indiana who wasn’t involved in the study, told the Associated Press. “This growth is believed to have occurred about 4.5 billion years ago, contemporaneous with the formation of the solar system.”

At a news briefing on Monday, the BBC reports, researchers involved in the study suggested that a slow, gentle collision had brought the lobes together.

"I would say it's a quite beautiful love story," lead study author Matteo Massironi said.

Read more:

Sorry, there probably isn’t life on Rosetta’s comet — even if ‘scientists’ said so

Rosetta’s comet just made its closest pass of the sun

The violent beauty of the Veil Nebula reveals itself in new NASA image

Pluto shows off snakeskin textures in highest-resolution pictures yet