![]() |
|
|
|
|
#1 |
|
Архивный участник
Join Date: Aug 2005
Posts: 38
|
nooblet question: how to translate client coords (/loc) to region coords?
ie 355353 21236 -3732 => 22-24 thanks :roll: |
|
|
|
|
#2 |
|
Архивный участник
Join Date: May 2005
Posts: 99
|
all cube have the same size in X & Y (z does not change the region)
and its 32768. Each 32768, increase the X region (16... 17 ... 18...) same for Y So, with a division modulo function, you can know where you are |
|
|
|
|
#3 |
|
Архивный участник
Join Date: Aug 2005
Posts: 38
|
k
thanks |
|
|
|
|
#4 |
|
Архивный участник
Join Date: Jun 2005
Posts: 285
|
$geo_x=20+($game_x-$game_x%32768)/32768;
$geo_y=18+($game_y-$game_y%32768)/32768; |
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|