Initially, two non-touching spheres of radii R1 and R2 are lying in space at rest.
Both of them are then given accelerations a1 and a2 respectively at time=0.
Find whether they will ever come in contact. Their initial positions are represented as (x1,y1,z1)
and (x2,y2,z2) respectively. Accelerations have respective components in 3D. They are
represented as (a1i,a1j,a1k) and (a2i,a2j,a2k) respectively.
What is the mathematical condition for successful collision of spheres? Or what should be the programming thinking to solve this kind of problem.
Note: It would be great if you can give me the satisfying condition in terms of variables mentioned in the question i.e., r1,r2,x1,y1,z1,x2,y2,z2,a1i,a2i,a1j,a2j,a1k and a2k
Thanks a lot for helping me out. Fortunately, I found the solution. I am sharing it here for all those who are enthusiastic about this problem.