Posts: 737
Threads: 338
Joined: Jan 2013
Hi,
. For ex, i have X and Y coordinates:
It'is just example coordaintes. And how to check is this coordinates is above water?
Posts: 1,398
Threads: 25
Joined: Jan 2014
Reputation:
0
For checking the coords are above water level(i am not saying in water i am saying level) or not
You need z coords because Z coords are for altitude and if z coords are above 0 then it will be above water
Posts: 2,421
Threads: 52
Joined: Mar 2009
Reputation:
0
If you mean check if the position is water or land, it could be difficult.
You could perhaps create a polygon (probably more that 1 polygon) around the land mass, and check if the player is in that polygon. If the player isn't in the polygon they are above/under/in water. This could be expensive and would take a lot of time to get the points for the polygon.
If you just wana know if they are above sea-level, use the method BroZeus said.
Posts: 737
Threads: 338
Joined: Jan 2013
It'is too hard to make all positions of earth, and still you don't do it accuarate