Fixed a bug spotted in UFOManipulator where a Vec3's 4th component was

being inspected (ip[3]).
This commit is contained in:
Don BURNS
2006-02-09 19:31:05 +00:00
parent 59ad441be1
commit 37be1d9259

View File

@@ -144,8 +144,8 @@ void UFOManipulator::computeHomePosition()
hitr!=hitList.end(); ++hitr)
{
osg::Vec3d ip = hitList.front().getWorldIntersectPoint();
if( fabs(ip[3]) < ground )
ground = ip[3];
if( fabs(ip[2]) < ground )
ground = ip[2];
}
}
else