Another myth.
The spines are terribly sharp and when a spine sinks into my skin it hurts for days, but think about it. If I were an Urchin with all these appendages used for keeping predators away, what good would it be to get my stiff spines stuck in things which restrict my movement. As I felt the presence of a stationary object at the tip of a spine, I would move my entire body to go around it. This is exactly how Urchins behave.
What's cool though, is when they get bumped by something moving at them, they start swaying their spines all around saying, "Here am I. I poke really bad. I can hurt you. Stay away."
Hope this helps.