Heroin is very much a physical addiction. When you take it, it overloads your body with endorphins, so your brain shuts down the natural production of them. When you come off of it, you're not producing at the normal level, and that's where the tolerance and withdrawal all come in.