I am looking to test detect if a cone (described by an apex, angle theta and axis) and a sphere (defined by a sphere centre and a radius) intersect.(adsbygoogle = window.adsbygoogle || []).push({});

Please see here for a complete description (because i can't post the code here):

http://www.gamedev.net/community/forums/topic.asp?topic_id=513868

I am having trouble doing a simple test using this algorithm at the bottom of the link, which brings into question either the code or the validity of the math principles used. Intersections and Misses of the cone and sphere detections aren't consistent. Any advice on what is wrong with the math or the code?

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Cone sphere intersection

**Physics Forums | Science Articles, Homework Help, Discussion**