1
\$\begingroup\$

How can I use a bounding sphere for intersection, like on a statue? Would I use the radius to detect intersection?

\$\endgroup\$

closed as unclear what you're asking by DMGregory, Gnemlock, Almo, Engineer, Alexandre Vaillancourt Aug 1 '17 at 10:38

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • \$\begingroup\$ Hi Terry, could you give us some more details. Are you attempting to do this in some specific code? Or are you more interested in just how the general mathematics works? \$\endgroup\$ – Chris Jul 31 '17 at 20:39
  • \$\begingroup\$ Two spheres intersect if the distance between them is less than the sum of their radii. I'm not entirely sure that's what your question is asking though. Most collisions in games are done with the SAT or GJK algorithm. \$\endgroup\$ – Andrew Wilson Aug 1 '17 at 4:52
  • \$\begingroup\$ Yes, as @AndrewWilson said, use distance to check for intersection. For instance, if you're intersecting with a point, check if the distance from the point to the center of the sphere is less than or equal to the radius of the sphere. \$\endgroup\$ – clabe45 Aug 1 '17 at 14:09

Browse other questions tagged or ask your own question.