Advice sorry it’s long

Okay so for the beginning of my pregnancy I was depressed and still am but the closer the due date comes the happier I’m becoming. I’m 26 weeks now, and unfortunately for the majority of it I’ve spent in my room because I’ve been depressed. Anyways, I have really bad scoliosis and recently my back has been KILLING me. Getting up and walking around are becoming hard for me. My ob says to take Tylenol and rest with a heating pad and while that mutes the pain, my hips have also started to hurt which makes wanting to get up and move not only hard but not even motivational. LONG STORY SHORT, my family is on my back from not leaving my room and socializing which I did do because of my depression and anxiety which I’m still working on but now I have to deal with PAIN. They don’t seem to understand and my father seems to be getting mad at me but I told him my doctor recommended resting and using a heat pad and he just wants me to leave my room but now it just makes my anxiety worse. Sorry for the paragraph, how do I get him off my back?