This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
TheGeek's profile picture

GPS: Z and Y flipped

Started by TheGeek, 02 December 2012 - 04:55 PM
TheGeek #1
Posted 02 December 2012 - 05:55 PM
For some strange reason, Z and Y values are flipped when I use GPS locate on my servers. is this normal? or perhaps I set up my GPS wrong?
Ikkalyzte #2
Posted 02 December 2012 - 06:43 PM
Flipped how, as in negative? Or z is y and y is z?
If it's the latter, then remember that when you set up hosts the order of arguments is <x>,<y>,<z>, not <x>,<z>,<y>.
If it's the former, then I have no clue. Maybe not enough close hosts
ChunLing #3
Posted 03 December 2012 - 03:14 AM
It's completely normal for the coordinate system provided by gps.locate to match the coordinate system used to set up the hosts. Check the locations of your hosts and you'll see that they match the system being provided.

Unless you rewrote gps.locate, in which case I guess only you know what's gone wrong.
TheGeek #4
Posted 03 December 2012 - 11:38 AM
Yep! Thats what happened! Somebody else set up the GPS hosts on the server and swapped the Y and Z coordinates. Once I fixed the hosts, the program started working! Thanks for the help!