I practice jujitsu, an art which involves a lot of close physical contact. At times I've worked with people I find attractive, but the mindset's different enough that I don't have those sorts of intrusive thoughts during practice. It takes time to develop that mindset, though -- beginning students are often uncomfortable.
Haven't read Worm, though, so I'm not sure how applicable that would be.