Determine whether a point is below terrain or not
Posted: Wed Jul 26, 2006 6:54 pm
Hi all
in my project after the terrain is loaded i need to know whether a point is below the landscape for this i wrote like this ---
the point in 3d space is offset
Box1=terrain->getBoundingBox();
if(offset.x<Box1.T minxx || offset.y< Box1.T miny || offset.z < Box1.T minz)
flag = true ;
else
flag = false ;
---------------------------------------------------------------------------'
is it right to do to know whether the point is below the terrain or not
please help
in my project after the terrain is loaded i need to know whether a point is below the landscape for this i wrote like this ---
the point in 3d space is offset
Box1=terrain->getBoundingBox();
if(offset.x<Box1.T minxx || offset.y< Box1.T miny || offset.z < Box1.T minz)
flag = true ;
else
flag = false ;
---------------------------------------------------------------------------'
is it right to do to know whether the point is below the terrain or not
please help