From Michael Gronager, fix to an orientation bug.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user