I'm so glad you asked, and that you learned from the experience that you can have an emotional and physical connection that is safe and nothing bad happened!
It is those past experiences of connecting and being hurt or abused that make hugging so scary for me. Not that I think my t is dangerous - far from it! But my body remembers: trusting, drawing closer, connecting, OH NO!!! RUN FOR THE HILLS! RUN FOR THE HILLS!
I wish so badly my t and i could reach a point where i could learn that such connection can be safe, fulfilling, and not scary.