Suppose there are some static balls of radius $r$ in a $2D$ table. I will put one of them (let's call it $b$) with velocity $v$.
My question is: how to detect which ball will be hit first? I couldn't prove to myself my approach works and I'm pretty sure it doesn't.
- My thought: get all balls whose distance to the line formed by $b$ and $v$ is less than $r$. The answer would be the ball among those whose distance to $b$ is the minimum.
In the image, the nearest ball will be touch but the furthest ball will be touched first.
How can I correctly guess which will be chosen first?

Draw boundaries with radius $2r$ around static balls. When center of moving ball reaches boundary, collision occurs.