Physical processes of core formation