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
Determine whether a point is below terrain or not
I think you should check for xyz > minxyz and xyz < maxxyz !?!?!
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java