D
Dengar
Guest
im working on a gps game and im fundamentally stumped on something im sure is simple.
gps latitude coordinates are positive above 0 and negative below it.
ingame y coordinates are negative above 0 and positive below it.
the below formula calculates the offset from the center object to show ingame where u are in relation to the central object. it works perfect for longitude/x coordinates, but because latitude/y coordinates are diferent in shows things backwards ie south is north and up is down. but im stumped on how to correct it.
any and all thoughts and help welcome
gps latitude coordinates are positive above 0 and negative below it.
ingame y coordinates are negative above 0 and positive below it.
the below formula calculates the offset from the center object to show ingame where u are in relation to the central object. it works perfect for longitude/x coordinates, but because latitude/y coordinates are diferent in shows things backwards ie south is north and up is down. but im stumped on how to correct it.
Code:
nyy = y + (( latitude_new - latitude_center)*32);
Last edited by a moderator: