[osg-users] get coordinates of intersect point between a Line Segment Intersector and an object

Robert Osfield robert.osfield at gmail.com
Fri Nov 20 01:30:12 PST 2009

Hi Dat,

On Thu, Nov 19, 2009 at 11:57 PM, Nguyen Tien Dat <tiendatbk at gmail.com> wrote:
> Dear all,
> How can I get the coordinates of the intersect point when I shoot a
> ray to the scene and the ray hits an object?

The osgUtil::LineSegmentIntersector contains the "Intersections", that
you simply get with getItersections().  Intersections is a mutliset of
LineSegmentIntersection::Intersection structs that you can access all
the info from.


More information about the osg-users mailing list