Fixed a bug spotted in UFOManipulator where a Vec3's 4th component was
being inspected (ip[3]).
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user