Hello!

I'm in the process of putting together an application by which a user, holding 
a wand in a CAVE environment should be able to point and select an object at a 
variable distance in virtual space. This is to say that there will be multiple 
objects at various distances from the user, and depending on the orientation of 
the wand, if let's say it's "pointing vector" intersects with the object, then 
the object is selected after which the user can manipulate it. 

I've been able to get the Wand matrix position and orientation data via:

    // Get wand data
    gmtl::Matrix44f wandMatrix = mWand->getData();

However, I'm struggling to with how to determine if the "point vector" 
intersects with an object or not. I've looked into the OSG command 
osgUtil::LineSegmentIntersector but am not this will produce the results I'm 
aiming for. Is there a class/function already developed within OSG to do this? 

Any guidance would be greatly appreciated! Thank you kindly for your time!

Cheers,

Dustin K.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=50921#50921





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

Reply via email to