Take parametric equations for the objects' motions and plug them into the distance formula (squaring both sides): distance formula squaredfor example, newxpos1 = (aa + txvel1w) for the objects' motions and plug them into the distance formula -(squaring both sides): distance formula squared = (ca + t(xvel2))^2 +w - (bc + tyvel1 -x))^2 + (db + ty - (yvel2d + t*z))^2. Remember, t is going to be negative. To find the time of collision for two circular objects we set the left side equal to (r+s)^2. Solving for t using the quadratic equation (and a great deal of very tedious algebra), we get the above "t=..." equation.