Changed the length multiple to be 2x the bounding sphere radius

This commit is contained in:
Robert Osfield 2004-08-16 08:32:16 +00:00
parent f62d0e4dd2
commit d64aa24449

View File

@ -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;