From f62d0e4dd20bdae33927d4b68c7c7d01d0826580 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 16 Aug 2004 07:29:07 +0000 Subject: [PATCH] From Michael Gronager, fix to an orientation bug. --- src/osgSim/VisibilityGroup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgSim/VisibilityGroup.cpp b/src/osgSim/VisibilityGroup.cpp index 8668b2f97..a3827565a 100644 --- a/src/osgSim/VisibilityGroup.cpp +++ b/src/osgSim/VisibilityGroup.cpp @@ -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); }