Hello Robert,

This is the code I was using. However, when I invert the matrix I don't seem to 
get any intersections. When I comment it out I get some results, but I have 
other questions there. :)


Code:
//Start and End Points
osg::Vec3d start = osg::Vec3d(0,0,30);
osg::Vec3d end = osg::Vec3d(0,0,90);

//Transform by penTrans
osg::Matrixd tempMatrix = penTrans->getMatrix();
//tempMatrix.invert(tempMatrix);
start = start * tempMatrix;
end = end * tempMatrix;



Then I'm using getLocalIntersectPoint() on the first intersection (If I have 
any). Is "Local" in the coordinate system of the object that was intersected? 
If that's the case then I'd expect "World" to be in the coordinate system of 
the node the visitor starts in. Is this correct?

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





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

Reply via email to