Hey, I have been trying to translate the world coordinates of monuments into map image coordinates, but the position is always wrong. To test my code I used the command "world.rendermap" which gave me a 5000x5000 image of a map with 4k size. I looked into LustyMap to get some inspiration for the conversion Code and came up with:
float half = WorldSize / 2.0f;
float posScale = 5000 / WorldSize;
float imageX = (monument.transform.position.x + half) * posScale;
float imageZ = (monument.transform.position.z + half) * posScale;
However, like I mentioned, this does not seem to work. Anyone here that has done such a thing already? 😀
Converting world coordinates to map image coordinates
yes, several plugins have done this already. a grid size is 146.3
sibiki8029yes, several plugins have done this already. a grid size is 146.3
Yes but like I said I have implemented it like I showed above, but it is giving me wrong results.