From Michael Gronager, fix to an orientation bug.

This commit is contained in:
Robert Osfield
2004-08-16 07:29:07 +00:00
parent 1f3e43997d
commit f62d0e4dd2

View File

@@ -71,7 +71,7 @@ void VisibilityGroup::traverse(osg::NodeVisitor& nv)
if(!hitList.empty()) // we actually hit something
{
// notify(INFO) << "Hit obstruction"<< std::endl;
osg::Vec3 normal = hitList.front().getLocalIntersectNormal();
osg::Vec3 normal = hitList.front().getWorldIntersectNormal();
if((normal*seg) > 0.f ) // we are inside
Group::traverse(nv);
}