There's also an (c++) example on http://www.gametutorials.com on how to do a sphere-polygon collision.