Cross-posting to the games forum. This is for a game, but it is largely a math problem. I need to do collision detection between a sphere and a tube that's following a bezier path.

For details please read the other post.