You should do line to circle colision detection for this. http://stackoverflow.com/a/1079478