Answer:
planets are formed around a new star by condensing in a disc of molecular gas and dust, embedded in a larger molecular cloud. Condensation increases until they become giant planets, that are heated, then cleanse their orbits in the disc and possibly bend it.