Planets can't be in just any orbit, they have to be far enough apart so that they don't hit each other, and aren't drawn into
collision by gravity. Originally there was a huge cloud of dust and gas that gravity was causing to spin around its center, where a giant lump was being formed. ... Those became the
planets.
read more >>