Danny Lesnik wrote:
Thank you for your help. I think I understand now what LineSegmentIntersector is doing.
What might be the correct approach to test wether bounding sphere intrsect with 
any other project?
That depends on how coarse/precise you want the intersections to be. Testing bounding spheres against each other is easy, but you might still need an acceleration structure to avoid testing every bounding sphere against every other (depending on the number of objects to test you will have).

If you want to test a bounding sphere against a polygonal mesh then I'm not sure there is currently anything in OSG that will do that.

Depending on how much stuff you want to write yourself to do this with the classes OSG provides you might want to look at existing collision detection libraries. For example, GIMPACT (http://gimpact.sourceforge.net/reference_html/index.html) might be of use for your case.

Paul
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to