Code: Select all
<value name="world_pos" type="vec">-9019.082,486.125,2830.436</value>
This line is the location of a military base named "Kem Komander Sutherland".
My problem is that I have no idea how to take these values and turn them into map coordinates like the ones used in-game. I've looked into vector algebra, but it doesn't appear that these values represent a Euclidean vector. I am certain that the first value is X and the last is Y. The middle value is unknown, but probably Z (altitude).
For reference, the above village is roughly located at (7360,19200) in-game. It's important to note that in-game coordinates do not have pinpoint accuracy due to the way the world map works. The game uses a 2048x2048 pixel image for the world map and the coordinates run from (0,0) in the top-left to (32768,32768) in the bottom-right. This means that each pixel on the map represents 16 meters.
Does anyone have any idea how this world_pos becomes the map coordinates?