From d64aa24449b28b7074cbfbd6cbf334c239758ad7 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 16 Aug 2004 08:32:16 +0000 Subject: [PATCH] Changed the length multiple to be 2x the bounding sphere radius --- 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 a3827565a..3492f235b 100644 --- a/src/osgSim/VisibilityGroup.cpp +++ b/src/osgSim/VisibilityGroup.cpp @@ -48,7 +48,7 @@ void VisibilityGroup::traverse(osg::NodeVisitor& nv) // now scale the segment to the segment length - if 0 use the group bounding sphere radius float length = _segmentLength; if(length == 0.f) - length = getBound().radius(); + length = 2.0f*getBound().radius(); look *= length; osg::Vec3 center = eye + look;