When two spheres intersect they should share one or two points. I want to know how to compute those points?
I was thinking of something like this:
- -check if the spheres intersect
- -calculate
radius_1
distance fromcenter_1
in the direction ofcenter_2
- -calculate
radius_2
distance fromcenter_2
in the direction ofcenter_1
- -substract the smaller to the larger and have that one as "collision" point
This sounds to me a little too tricky, I wanted to know if there is a simplier way to achieve this?