Posting the same question on gamedev I got this answer. It seems quite complete and it allowed me to understand things better and solve my problem.
Pergunta
my question should be simple (even if I can't find a way out).
When two BoundingSphere
intersects they should share one or two points. I wanna know if there is any chance to know those points exactly (or approximately) or not.
I was thinking 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
but since this sounds to me a little too tricky, I wanted to know if there is a simplier way to achieve this.
Hope to have made myself clear
Solução
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow