I need to find the “smallest” distance between the center of a sphere and a ray that is passing through it:

- I know the
**starting point**position and it’s**forward direction.** - I also know the position of the
**crossing point**and the**sphere’s center**.

What I need is a formula to solve for **closest distance** between the ray and sphere center point.

Any ideas?