Homeless people can/have retain(ed) custody of their children. Seriously. As a GAL i have recommended and the court has granted custody to a homeless parent who was living not in a home/apartment but in temporary housing. Would that happen here? Don't know. But it is definitely possible.
On what grounds? I am far from unfit. I don't drink, smoke, do drugs, beat, abuse, nada, zip, zilch. I haven't even overshot my destination by 150 miles!
If a judge decides that then so be it. It will be on the judge's conscience and my ex's to have my kids live that kind of life. It would be out of my hands outside visitation and child support.
Like I said. I am not obligated to provide anything to my ex. I did for years and she failed. My concern is my kids. PERIOD!